diff options
| author | HampusM <hampus@hampusmat.com> | 2026-07-08 23:19:06 +0200 |
|---|---|---|
| committer | HampusM <hampus@hampusmat.com> | 2026-07-08 23:19:06 +0200 |
| commit | 213e4cfc698f0e0f9fcfbe43cf8c49f8f331e699 (patch) | |
| tree | 666b38f087985fa0ed6d85f3d046760b16666365 /engine-ecs/examples/with_local.rs | |
| parent | 05063e79465a33eb156c25edf8193fd77ba24314 (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.rs | 4 |
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(); |
