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

sendprop writing

This commit is contained in:
Robin Appelman 2021-07-19 19:53:51 +02:00
commit bfd6d8caf9
3 changed files with 382 additions and 24 deletions

View file

@ -34,6 +34,9 @@ impl<'a> BitRead<'a, LittleEndian> for TempEntitiesMessage<'a> {
impl BitWrite<LittleEndian> for TempEntitiesMessage<'_> {
fn write(&self, stream: &mut BitWriteStream<LittleEndian>) -> ReadResult<()> {
if !self.entities.is_empty() {
todo!();
}
self.count.write(stream)?;
write_var_int(self.data.bit_len() as u32, stream)?;
self.data.write(stream)