summaryrefslogtreecommitdiff
path: root/engine-ecs/src/phase.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/src/phase.rs
parent05063e79465a33eb156c25edf8193fd77ba24314 (diff)
refactor(engine-ecs): rename entity creation fns to use 'spawn' terminology
Diffstat (limited to 'engine-ecs/src/phase.rs')
-rw-r--r--engine-ecs/src/phase.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/engine-ecs/src/phase.rs b/engine-ecs/src/phase.rs
index 434e728..cb87cc6 100644
--- a/engine-ecs/src/phase.rs
+++ b/engine-ecs/src/phase.rs
@@ -10,10 +10,10 @@ declare_entity!(pub POST_UPDATE, (Phase,));
pub(crate) fn spawn_entities(world: &mut World)
{
- world.create_declared_entity(&START);
- world.create_declared_entity(&PRE_UPDATE);
- world.create_declared_entity(&UPDATE);
- world.create_declared_entity(&POST_UPDATE);
+ world.spawn_declared_entity(&START);
+ world.spawn_declared_entity(&PRE_UPDATE);
+ world.spawn_declared_entity(&UPDATE);
+ world.spawn_declared_entity(&POST_UPDATE);
}
#[derive(Debug, Component)]