basic ECS spawner
This commit is contained in:
15
addons/gecs/tests/entities/e_complex_serialization_test.gd
Normal file
15
addons/gecs/tests/entities/e_complex_serialization_test.gd
Normal file
@@ -0,0 +1,15 @@
|
||||
class_name E_ComplexSerializationTest
|
||||
extends Entity
|
||||
|
||||
|
||||
func define_components() -> Array:
|
||||
return [
|
||||
C_ComplexSerializationTest.new(
|
||||
[10, 20, 30],
|
||||
["alpha", "beta", "gamma"],
|
||||
{"hp": 100, "mp": 50, "items": 3},
|
||||
[],
|
||||
{}
|
||||
),
|
||||
C_SerializationTest.new(999, 2.718, "complex_entity", false, Vector2(5.0, 10.0), Vector3(1.0, 2.0, 3.0), Color.BLUE)
|
||||
]
|
||||
Reference in New Issue
Block a user