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,20 @@
class_name TestBSystem
extends System
func deps():
return {
Runs.After: [TestASystem], # Runs after SystemA
Runs.Before: [TestCSystem], # This system rubs before SystemC
}
func query():
return ECS.world.query.with_all([C_TestB])
func process(entities: Array[Entity], components: Array, delta: float):
for entity in entities:
var a = entity.get_component(C_TestB)
a.value += 1
print("TestBSystem: ", a.value)