Compare commits

...

1 Commits

Author SHA1 Message Date
SeanOMik 62adcf2b50 ecs: create DynTypeId::as_unknown
CI / build (push) Failing after 6m11s Details
2024-11-06 21:23:01 -05:00
1 changed files with 8 additions and 1 deletions

View File

@ -49,6 +49,13 @@ impl DynTypeId {
DynTypeId::Unknown(_) => panic!("This type is unknown to rust, cannot construct a TypeId from it!"),
}
}
pub fn as_unknown(&self) -> Option<u128> {
match self {
DynTypeId::Rust(_) => None,
DynTypeId::Unknown(id) => Some(*id),
}
}
}
/// Some information about a component.