feat: validate expanded resource discovery

This commit is contained in:
2026-07-07 16:08:40 +02:00
parent 4bfc09d5f6
commit b74573fe0e
6 changed files with 116 additions and 11 deletions
+4 -4
View File
@@ -36,10 +36,10 @@ func _run() -> void:
"Runtime should not retain duplicate flat-world objects"
)
var resource_root := main_scene.get_node("JajceWorld/WorldObjects/ResourceNodes")
_check(resource_root.get_child_count() == 8, "Runtime should contain eight Jajce ResourceNodes")
_check(resource_root.get_child_count() == 12, "Runtime should contain twelve Jajce ResourceNodes")
_check(
simulation_manager.resource_states.size() == 8,
"Simulation authority should bind all eight Jajce resources"
simulation_manager.resource_states.size() == 12,
"Simulation authority should bind all twelve Jajce resources"
)
var navigation_map: RID = main_scene.get_world_3d().navigation_map
@@ -102,7 +102,7 @@ func _run() -> void:
)
if failures.is_empty():
print("[TEST] Jajce runtime passed: 6 NPCs, 8 resources, typed sites")
print("[TEST] Jajce runtime passed: 6 NPCs, 12 resources, typed sites")
quit(0)
return