summaryrefslogtreecommitdiff
path: root/engine-ecs/examples/relationship.rs
diff options
context:
space:
mode:
Diffstat (limited to 'engine-ecs/examples/relationship.rs')
-rw-r--r--engine-ecs/examples/relationship.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/engine-ecs/examples/relationship.rs b/engine-ecs/examples/relationship.rs
index 749c202..41672ef 100644
--- a/engine-ecs/examples/relationship.rs
+++ b/engine-ecs/examples/relationship.rs
@@ -41,9 +41,9 @@ fn main()
world.register_system(*START_PHASE, print_player_stats);
- let sword_uid = world.create_entity((Sword { attack_strength: 17 },));
+ let sword_uid = world.spawn((Sword { attack_strength: 17 },));
- world.create_entity((
+ world.spawn((
Player,
Health { health: 180 },
Pair::builder()