diff options
Diffstat (limited to 'ecs/src/system.rs')
-rw-r--r-- | ecs/src/system.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ecs/src/system.rs b/ecs/src/system.rs index 046d25b..3ba693b 100644 --- a/ecs/src/system.rs +++ b/ecs/src/system.rs @@ -5,6 +5,7 @@ use std::marker::PhantomData; use std::ops::{Deref, DerefMut}; use std::panic::{RefUnwindSafe, UnwindSafe}; +use ecs_macros::Component; use seq_macro::seq; use crate::component::{ @@ -314,3 +315,9 @@ impl<'a, ComponentT: Component> Deref for ComponentRef<'a, ComponentT> self.inner.downcast_ref().unwrap() } } + +#[derive(Debug, Component)] +pub(crate) struct SystemComponent +{ + pub(crate) system: TypeErased, +} |