diff options
author | HampusM <hampus@hampusmat.com> | 2024-08-10 18:50:45 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2024-08-10 20:56:39 +0200 |
commit | 93f764e1003bb6f35b56b7b91a73ae0ca80282c9 (patch) | |
tree | 1765bd3ba2e61783e3477211eb84550726e0b7d9 /ecs/examples | |
parent | b4be1c1e9a7e69a86a5aa9be6699847edc2c8d0f (diff) |
refactor(ecs): create archetype lookup entries on-the-go
Diffstat (limited to 'ecs/examples')
-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/relationship.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 |
7 files changed, 0 insertions, 14 deletions
diff --git a/ecs/examples/extension.rs b/ecs/examples/extension.rs index 97c57a6..2022b05 100644 --- a/ecs/examples/extension.rs +++ b/ecs/examples/extension.rs @@ -69,8 +69,6 @@ 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 d1fd3f1..2736bce 100644 --- a/ecs/examples/multiple_queries.rs +++ b/ecs/examples/multiple_queries.rs @@ -81,7 +81,5 @@ fn main() world.create_entity((AttackStrength::Strong,)); world.create_entity((AttackStrength::Weak,)); - world.prepare(); - world.emit(StartEvent); } diff --git a/ecs/examples/optional_component.rs b/ecs/examples/optional_component.rs index cd0679b..e47bf2e 100644 --- a/ecs/examples/optional_component.rs +++ b/ecs/examples/optional_component.rs @@ -82,7 +82,5 @@ fn main() Aggressivity::Low, )); - world.prepare(); - world.emit(PettingTime); } diff --git a/ecs/examples/relationship.rs b/ecs/examples/relationship.rs index ce39af6..81f6028 100644 --- a/ecs/examples/relationship.rs +++ b/ecs/examples/relationship.rs @@ -44,7 +44,5 @@ fn main() Relationship::<Holding, Sword>::new(&world, sword_uid), )); - world.prepare(); - world.emit(StartEvent); } diff --git a/ecs/examples/simple.rs b/ecs/examples/simple.rs index d29970d..4057c84 100644 --- a/ecs/examples/simple.rs +++ b/ecs/examples/simple.rs @@ -38,7 +38,5 @@ fn main() Greeting { greeting: "Good evening".to_string() }, )); - world.prepare(); - world.emit(StartEvent); } diff --git a/ecs/examples/with_local.rs b/ecs/examples/with_local.rs index 0d5e366..5890b90 100644 --- a/ecs/examples/with_local.rs +++ b/ecs/examples/with_local.rs @@ -69,8 +69,6 @@ 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 6dec271..a387bea 100644 --- a/ecs/examples/with_sole.rs +++ b/ecs/examples/with_sole.rs @@ -53,8 +53,6 @@ fn main() world.add_sole(AmmoCounter::default()).unwrap(); - world.prepare(); - world.emit(EventA); world.emit(EventB); |