diff options
Diffstat (limited to 'ecs/src/phase.rs')
| -rw-r--r-- | ecs/src/phase.rs | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/ecs/src/phase.rs b/ecs/src/phase.rs deleted file mode 100644 index e8d9b71..0000000 --- a/ecs/src/phase.rs +++ /dev/null @@ -1,22 +0,0 @@ -use ecs_macros::Component; - -use crate::{World, declare_entity}; - -#[derive(Debug, Default, Clone, Copy, Component)] -pub struct Phase; - -declare_entity!(pub START, (Phase,)); -declare_entity!(pub PRE_UPDATE, (Phase,)); -declare_entity!(pub UPDATE, (Phase,)); -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); -} - -#[derive(Debug, Component)] -pub(crate) struct HasSystem; |
