mirror of
https://codeberg.org/demostf/parser.git
synced 2026-06-04 02:24:12 +02:00
early sendprop cleanup
This commit is contained in:
parent
2602e23de8
commit
e3ddd9f3e2
3 changed files with 36 additions and 28 deletions
|
|
@ -18,10 +18,10 @@ impl EntityId {
|
|||
#[derive(BitRead, Clone, Copy, Debug)]
|
||||
#[discriminant_bits = 3]
|
||||
pub enum PVS {
|
||||
PRESERVE = 0,
|
||||
ENTER = 1,
|
||||
LEAVE = 2,
|
||||
DELETE = 4,
|
||||
Preserve = 0,
|
||||
Leave = 1,
|
||||
Enter = 2,
|
||||
Delete = 3,
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
|
|
@ -79,3 +79,15 @@ impl ParseBitSkip for PacketEntitiesMessage {
|
|||
stream.skip_bits(length as usize).map_err(ParseError::from)
|
||||
}
|
||||
}
|
||||
|
||||
pub struct EntityUpdate {
|
||||
props: Vec<SendProp>
|
||||
}
|
||||
|
||||
impl Parse for EntityUpdate {
|
||||
fn parse(stream: &mut Stream, _state: &ParserState) -> Result<Self> {
|
||||
Ok(EntityUpdate {
|
||||
props: Vec::new()
|
||||
})
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue