1
0
Fork 0
mirror of https://codeberg.org/demostf/parser.git synced 2026-06-04 02:24:12 +02:00

propnames

This commit is contained in:
Robin Appelman 2022-04-09 18:50:47 +02:00
commit b8d3540069
9 changed files with 5643 additions and 88 deletions

View file

@ -38,6 +38,18 @@ impl From<u32> for EntityId {
}
}
impl From<EntityId> for u32 {
fn from(id: EntityId) -> Self {
id.0
}
}
impl PartialEq<u32> for EntityId {
fn eq(&self, other: &u32) -> bool {
self.0 == *other
}
}
#[cfg_attr(feature = "schema", derive(schemars::JsonSchema))]
#[derive(
BitRead, BitWrite, Clone, Copy, Debug, PartialEq, Eq, Serialize_repr, Deserialize_repr,