basic ECS spawner

This commit is contained in:
2026-01-15 15:27:48 +01:00
parent 24a781f36a
commit eb737b469c
860 changed files with 58621 additions and 32 deletions

View File

@@ -0,0 +1,19 @@
class_name S_TestOrderD
extends System
const NAME = 'S_TestOrderD'
func deps():
return {
Runs.After: [ECS.wildcard], # Run after all other systems
Runs.Before: [],
}
func query():
return ECS.world.query.with_all([C_TestOrderComponent])
func process(entities: Array[Entity], components: Array, delta: float):
for entity in entities:
var comp = entity.get_component(C_TestOrderComponent)
comp.execution_log.append("D")
comp.value += 1000