From 213e4cfc698f0e0f9fcfbe43cf8c49f8f331e699 Mon Sep 17 00:00:00 2001 From: HampusM Date: Wed, 8 Jul 2026 23:19:06 +0200 Subject: refactor(engine-ecs): rename entity creation fns to use 'spawn' terminology --- engine-ecs/examples/multiple_queries.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'engine-ecs/examples/multiple_queries.rs') 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(); } -- cgit v1.2.3-18-g5258