Files
godot-shader-experiments/addons/gecs/tests/systems/s_test_with_relationship.gd
2026-01-15 15:27:48 +01:00

13 lines
285 B
GDScript

class_name TestSystemWithRelationship
extends System
var entities_found := []
func query():
return q.with_relationship([Relationship.new(C_TestA.new(), null)])
func process(entities: Array[Entity], components: Array, delta: float) -> void:
entities_found = entities.duplicate()