diff options
author | HampusM <hampus@hampusmat.com> | 2024-04-14 12:34:52 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2024-04-14 12:35:28 +0200 |
commit | 101b455e51f9b702da5517cabe2c3b1086fcb2e7 (patch) | |
tree | 470e28acd7a3777dbb4be0208f9cd3177bba52a9 /engine/src/event.rs | |
parent | ef7b76ff39d501028852835649f618fcbe17a003 (diff) |
feat(engine): use ECS architecture
Diffstat (limited to 'engine/src/event.rs')
-rw-r--r-- | engine/src/event.rs | 26 |
1 files changed, 26 insertions, 0 deletions
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 {} |