mirror of
https://github.com/lisk77/comet.git
synced 2025-10-23 21:38:50 +00:00
feat: added the Color component to the base components in the ECS
This commit is contained in:
parent
4b6b5e64e9
commit
4d4c6aad90
14 changed files with 136 additions and 23 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue