diff options
Diffstat (limited to 'ecs')
-rw-r--r-- | ecs/examples/extension.rs | 2 | ||||
-rw-r--r-- | ecs/examples/multiple_queries.rs | 2 | ||||
-rw-r--r-- | ecs/examples/optional_component.rs | 2 | ||||
-rw-r--r-- | ecs/examples/simple.rs | 2 | ||||
-rw-r--r-- | ecs/examples/with_local.rs | 2 | ||||
-rw-r--r-- | ecs/examples/with_sole.rs | 2 |
6 files changed, 12 insertions, 0 deletions
diff --git a/ecs/examples/extension.rs b/ecs/examples/extension.rs index 2022b05..97c57a6 100644 --- a/ecs/examples/extension.rs +++ b/ecs/examples/extension.rs @@ -69,6 +69,8 @@ fn main() world.add_extension(EnemySpawningExtension); + world.prepare(); + for _ in 0..7 { world.emit(Update); diff --git a/ecs/examples/multiple_queries.rs b/ecs/examples/multiple_queries.rs index ab442be..4bc12a3 100644 --- a/ecs/examples/multiple_queries.rs +++ b/ecs/examples/multiple_queries.rs @@ -86,5 +86,7 @@ fn main() world.create_entity((AttackStrength::Strong,)); world.create_entity((AttackStrength::Weak,)); + world.prepare(); + world.emit(Start); } diff --git a/ecs/examples/optional_component.rs b/ecs/examples/optional_component.rs index e47bf2e..cd0679b 100644 --- a/ecs/examples/optional_component.rs +++ b/ecs/examples/optional_component.rs @@ -82,5 +82,7 @@ fn main() Aggressivity::Low, )); + world.prepare(); + world.emit(PettingTime); } diff --git a/ecs/examples/simple.rs b/ecs/examples/simple.rs index 6949308..7212159 100644 --- a/ecs/examples/simple.rs +++ b/ecs/examples/simple.rs @@ -43,5 +43,7 @@ fn main() Greeting { greeting: "Good evening".to_string() }, )); + world.prepare(); + world.emit(Start); } diff --git a/ecs/examples/with_local.rs b/ecs/examples/with_local.rs index 5890b90..0d5e366 100644 --- a/ecs/examples/with_local.rs +++ b/ecs/examples/with_local.rs @@ -69,6 +69,8 @@ fn main() world.create_entity((SomeData { num: 345 },)); + world.prepare(); + world.emit(Update); println!("Haha"); diff --git a/ecs/examples/with_sole.rs b/ecs/examples/with_sole.rs index a387bea..6dec271 100644 --- a/ecs/examples/with_sole.rs +++ b/ecs/examples/with_sole.rs @@ -53,6 +53,8 @@ fn main() world.add_sole(AmmoCounter::default()).unwrap(); + world.prepare(); + world.emit(EventA); world.emit(EventB); |