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

extract world boundaries

This commit is contained in:
Robin Appelman 2020-01-31 00:49:03 +01:00
commit a47336f709
2 changed files with 37 additions and 0 deletions

View file

@ -84,6 +84,13 @@ impl PacketEntity {
}
}
}
pub fn get_prop_by_name(&self, table_name: &str, name: &str) -> Option<&SendProp> {
self.props.iter().find(|prop| {
prop.definition.owner_table.as_str() == table_name
&& prop.definition.name.as_str() == name
})
}
}
fn read_bit_var<T: BitReadSized<LittleEndian>>(stream: &mut Stream) -> ReadResult<T> {