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

parse and encode tempentities

This commit is contained in:
Robin Appelman 2021-07-23 18:45:00 +02:00
commit 5c10c9e6ae
4 changed files with 126 additions and 30 deletions

View file

@ -27,6 +27,12 @@ impl From<ClassId> for usize {
}
}
impl From<ClassId> for u16 {
fn from(class: ClassId) -> Self {
class.0
}
}
#[derive(BitRead, BitWrite, PartialEq, Eq, Hash, Debug, Serialize, Deserialize, Clone, Display)]
pub struct ServerClassName(String);