diff options
Diffstat (limited to 'ecs/src/lib.rs')
-rw-r--r-- | ecs/src/lib.rs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/ecs/src/lib.rs b/ecs/src/lib.rs index c2fc9c7..fbcc451 100644 --- a/ecs/src/lib.rs +++ b/ecs/src/lib.rs @@ -44,11 +44,12 @@ struct Entity } #[derive(Debug)] -struct EntityComponent +#[non_exhaustive] +pub struct EntityComponent { - id: TypeId, - component: Lock<Box<dyn Component>>, - drop_last: bool, + pub id: TypeId, + pub component: Lock<Box<dyn Component>>, + pub drop_last: bool, } #[derive(Debug, Default)] |