ecs: create DynTypeId::as_unknown
CI / build (push) Failing after 6m11s
Details
CI / build (push) Failing after 6m11s
Details
This commit is contained in:
parent
4816b7333e
commit
62adcf2b50
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue