summaryrefslogtreecommitdiff
path: root/engine-ecs/examples/with_local.rs
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2026-07-08 23:19:06 +0200
committerHampusM <hampus@hampusmat.com>2026-07-08 23:19:06 +0200
commit213e4cfc698f0e0f9fcfbe43cf8c49f8f331e699 (patch)
tree666b38f087985fa0ed6d85f3d046760b16666365 /engine-ecs/examples/with_local.rs
parent05063e79465a33eb156c25edf8193fd77ba24314 (diff)
refactor(engine-ecs): rename entity creation fns to use 'spawn' terminology
Diffstat (limited to 'engine-ecs/examples/with_local.rs')
-rw-r--r--engine-ecs/examples/with_local.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/engine-ecs/examples/with_local.rs b/engine-ecs/examples/with_local.rs
index 2c04f26..6d54b7a 100644
--- a/engine-ecs/examples/with_local.rs
+++ b/engine-ecs/examples/with_local.rs
@@ -61,9 +61,9 @@ fn main()
.initialize((SayHelloState { cnt: 0 },)),
);
- world.create_entity((SomeData { num: 987_654 }, Name { name: "Bob".to_string() }));
+ world.spawn((SomeData { num: 987_654 }, Name { name: "Bob".to_string() }));
- world.create_entity((SomeData { num: 345 },));
+ world.spawn((SomeData { num: 345 },));
world.step();
world.step();