branchRust/Tech_Tree_Shufflecancel
4 Commits over 0 Days - Infinitycph!
Make the tech tree open fast on trees where items have several parents
* TechTreeDialog.AddNodesRecursive returns early for nodes it has already added, instead of rebuilding them once per parent
* TechTreeData.CheckChainRecursive stops at the first path it finds and searches each node once
* TechTreeData.GetNodesRequiredToUnlock works out each node's path once
* The editor's TechTreePreview copies get the same fixes
* A fully unlocked T2 builds in about 150 ms instead of 1,200 ms, and unlock results are unchanged
Merge remote-tracking branch 'origin/main' into Tech_Tree_Shuffle
Merge remote-tracking branch 'origin/main' into Tech_Tree_Shuffle
Tech tree shuffle and new tech tree editor
* New Tech Tree Editor (open it from a tree asset's inspector): drag and drop graph editing with grid snapping, box select, linking, populate, copy/paste and removing links on a selection
* Resizable side-by-side game preview that builds the real tech tree widgets and shows unlock path costs
* Tree checks ported from Martyn's TechTreeLint (hackweek_grapheditors)
* Tech tree columns can sit half a column over, so an even number of items centres under an odd number
* Rearranged the IO, tier 1, tier 2 and tier 3 trees, and relinked tier 1
* Hardcore and primitive trees use the new layouts, with links through removed items going straight to the next item that's present