summaryrefslogtreecommitdiff
path: root/engine-ecs/examples/multiple_queries.rs
diff options
context:
space:
mode:
Diffstat (limited to 'engine-ecs/examples/multiple_queries.rs')
-rw-r--r--engine-ecs/examples/multiple_queries.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/engine-ecs/examples/multiple_queries.rs b/engine-ecs/examples/multiple_queries.rs
index 1a4aaad..d04e43f 100644
--- a/engine-ecs/examples/multiple_queries.rs
+++ b/engine-ecs/examples/multiple_queries.rs
@@ -63,23 +63,23 @@ fn main()
world.register_system(*START_PHASE, do_attacks);
- world.create_entity((
+ world.spawn((
Health { health: 100 },
EnemyName { name: "Big spider".to_string() },
));
- world.create_entity((
+ world.spawn((
Health { health: 30 },
EnemyName { name: "Small goblin".to_string() },
));
- world.create_entity((
+ world.spawn((
Health { health: 30 },
EnemyName { name: "Headcrab".to_string() },
));
- world.create_entity((AttackStrength::Strong,));
- world.create_entity((AttackStrength::Weak,));
+ world.spawn((AttackStrength::Strong,));
+ world.spawn((AttackStrength::Weak,));
world.step();
}