From: Axy Date: Tue, 15 Sep 2026 21:12:14 +0000 (+0200) Subject: Tiny cleanup X-Git-Url: https://git.uwuaxy.net/sitemap.xml?a=commitdiff_plain;h=8546a4db4303a2988b9d7a1b774be02802b23150;p=axy%2Fft%2Fpacman.git Tiny cleanup --- diff --git a/src/pacman/ecs/__init__.py b/src/pacman/ecs/__init__.py index dba10e1..369aa88 100644 --- a/src/pacman/ecs/__init__.py +++ b/src/pacman/ecs/__init__.py @@ -15,10 +15,15 @@ from pacman.ecs.schedule import ( StartupSchedule, SystemSet, UpdateSchedule, +) +from pacman.ecs.world import ( + Entity, + Resource, + Systems, + World, WorldIsInit, WorldShouldExit, ) -from pacman.ecs.world import Entity, Resource, Systems, World def run_minimal_subschedules(world: World) -> None: diff --git a/src/pacman/ecs/schedule.py b/src/pacman/ecs/schedule.py index fb397de..dd15d01 100644 --- a/src/pacman/ecs/schedule.py +++ b/src/pacman/ecs/schedule.py @@ -131,11 +131,3 @@ class Schedule[T]: MainSchedule = ScheduleLabel("main") StartupSchedule = ScheduleLabel("startup") UpdateSchedule = ScheduleLabel("update") - - -class WorldIsInit: - pass - - -class WorldShouldExit: - pass diff --git a/src/pacman/ecs/world.py b/src/pacman/ecs/world.py index 510715e..28d090b 100644 --- a/src/pacman/ecs/world.py +++ b/src/pacman/ecs/world.py @@ -7,7 +7,6 @@ from pacman.ecs.schedule import ( Schedule, ScheduleLabel, SystemSet, - WorldShouldExit, ) @@ -298,3 +297,11 @@ class Systems: else: sched.add_ordering(systems, (), (), (label,)) return label + + +class WorldIsInit: + pass + + +class WorldShouldExit: + pass