basic ECS spawner
This commit is contained in:
17
addons/gecs/tests/systems/s_test_order_a.gd
Normal file
17
addons/gecs/tests/systems/s_test_order_a.gd
Normal file
@@ -0,0 +1,17 @@
|
||||
class_name S_TestOrderA
|
||||
extends System
|
||||
const NAME = 'S_TestOrderA'
|
||||
func deps():
|
||||
return {
|
||||
Runs.Before: [ECS.wildcard], # Run before all other systems
|
||||
Runs.After: [],
|
||||
}
|
||||
|
||||
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("A")
|
||||
comp.value += 1
|
||||
Reference in New Issue
Block a user