Save The Tree implementation and acceptance work in progress

Preserve production code, regression fixtures, audio assets and provenance, test infrastructure, and the original-completion plan and progress ledger. Final game and Windows acceptance remain pending; excluded local artifacts and native experiments are not part of this snapshot.
This commit is contained in:
Takeshi
2026-10-11 15:58:00 +09:00
parent 39f6068461
commit b84bade045
235 changed files with 495831 additions and 312 deletions
+5 -4
View File
@@ -229,8 +229,8 @@ func is_walkable(cell: Vector3i) -> bool:
return is_in_bounds(cell) and bool(_walkable.get(cell, false))
func get_walkable_cells() -> Array[Vector3i]:
return _sorted_dictionary_cells(_walkable)
func get_walkable_cells(sort_result := true) -> Array[Vector3i]:
return _sorted_dictionary_cells(_walkable, sort_result)
func set_excavated(cell: Vector3i, value: bool) -> bool:
@@ -728,12 +728,13 @@ func _sorted_entity_ids() -> Array[StringName]:
return result
func _sorted_dictionary_cells(source: Dictionary) -> Array[Vector3i]:
func _sorted_dictionary_cells(source: Dictionary, sort_result := true) -> Array[Vector3i]:
var result: Array[Vector3i] = []
for cell: Variant in source:
if cell is Vector3i:
result.append(cell)
result.sort_custom(_cell_less)
if sort_result:
result.sort_custom(_cell_less)
return result