From 101b455e51f9b702da5517cabe2c3b1086fcb2e7 Mon Sep 17 00:00:00 2001 From: HampusM Date: Sun, 14 Apr 2024 12:34:52 +0200 Subject: feat(engine): use ECS architecture --- engine/src/event.rs | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 engine/src/event.rs (limited to 'engine/src/event.rs') diff --git a/engine/src/event.rs b/engine/src/event.rs new file mode 100644 index 0000000..89c441f --- /dev/null +++ b/engine/src/event.rs @@ -0,0 +1,26 @@ +use ecs::event::Event; + +#[derive(Debug)] +pub struct Start; + +impl Event for Start {} + +#[derive(Debug)] +pub struct Update; + +impl Event for Update {} + +#[derive(Debug)] +pub struct PreUpdate; + +impl Event for PreUpdate {} + +#[derive(Debug)] +pub struct Present; + +impl Event for Present {} + +#[derive(Debug)] +pub struct PostPresent; + +impl Event for PostPresent {} -- cgit v1.2.3-18-g5258