From 69707562f8f746d750f392699151334b9836273e Mon Sep 17 00:00:00 2001 From: iHR4K <114698406+iHR4K@users.noreply.github.com> Date: Wed, 11 Dec 2024 17:53:46 -0500 Subject: [PATCH] #1457 Update Systems.md changes for world name --- docs/Systems.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/Systems.md b/docs/Systems.md index 9fcfd1281..117f04d53 100644 --- a/docs/Systems.md +++ b/docs/Systems.md @@ -791,12 +791,12 @@ An application can create custom phases, which can be (but don't need to be) bra ```c // Phases must have the EcsPhase tag -ecs_entity_t Physics = ecs_new_w_id(ecs, EcsPhase); -ecs_entity_t Collisions = ecs_new_w_id(ecs, EcsPhase); +ecs_entity_t Physics = ecs_new_w_id(world, EcsPhase); +ecs_entity_t Collisions = ecs_new_w_id(world, EcsPhase); // Phases can (but don't have to) depend on other phases which forces ordering -ecs_add_pair(ecs, Physics, EcsDependsOn, EcsOnUpdate); -ecs_add_pair(ecs, Collisions, EcsDependsOn, Physics); +ecs_add_pair(world, Physics, EcsDependsOn, EcsOnUpdate); +ecs_add_pair(world, Collisions, EcsDependsOn, Physics); // Custom phases can be used just like regular phases ECS_SYSTEM(world, Collide, Collisions, Position, Velocity);