summaryrefslogtreecommitdiff
path: root/ecs/src/lib.rs
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2024-06-16 13:17:57 +0200
committerHampusM <hampus@hampusmat.com>2024-06-16 13:17:57 +0200
commitd50a2f6e63c25adf3b64652310c423717bd3966f (patch)
tree3edf4ee3d1eec93a52a8de4fdc5a7be5c487c711 /ecs/src/lib.rs
parent69d90ece7f54996f0f51fc120a38d37717c5248e (diff)
refactor(ecs): add component ID struct
Diffstat (limited to 'ecs/src/lib.rs')
-rw-r--r--ecs/src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/ecs/src/lib.rs b/ecs/src/lib.rs
index 0dd1c02..e427150 100644
--- a/ecs/src/lib.rs
+++ b/ecs/src/lib.rs
@@ -11,7 +11,7 @@ use std::vec::Drain;
use crate::actions::Action;
use crate::component::storage::ComponentStorage;
-use crate::component::{Component, Sequence as ComponentSequence};
+use crate::component::{Component, Id as ComponentId, Sequence as ComponentSequence};
use crate::event::{Event, Id as EventId, Ids, Sequence as EventSequence};
use crate::extension::{Collector as ExtensionCollector, Extension};
use crate::lock::Lock;
@@ -212,7 +212,7 @@ pub struct WorldData
#[non_exhaustive]
pub struct EntityComponent
{
- pub id: TypeId,
+ pub id: ComponentId,
pub name: &'static str,
pub component: Lock<Box<dyn Component>>,
}