feat: added the Color component to the base components in the ECS

This commit is contained in:
lisk77 2025-03-21 23:17:16 +01:00
parent 4b6b5e64e9
commit 4d4c6aad90
14 changed files with 136 additions and 23 deletions

View file

@ -23,6 +23,10 @@ impl ComponentSet {
pub fn is_subset(&self, other: &ComponentSet) -> bool {
self.set.is_subset(&other.set)
}
pub fn to_vec(&self) -> Vec<TypeId> {
self.set.iter().cloned().collect()
}
}
impl Hash for ComponentSet {