mirror of
https://codeberg.org/demostf/parser.git
synced 2026-06-04 02:24:12 +02:00
baseline stuff
This commit is contained in:
parent
c90a7a3371
commit
ec57a76101
3 changed files with 39 additions and 11 deletions
|
|
@ -253,14 +253,14 @@ impl Parse<'_> for PacketEntitiesMessage {
|
|||
delta.is_some(),
|
||||
)?;
|
||||
let send_table = get_send_table(state, entity.server_class)?;
|
||||
Self::read_update(&mut data, send_table, &mut entity.props)?;
|
||||
Self::read_update(&mut data, send_table, &mut entity.props, entity_index)?;
|
||||
|
||||
entities.push(entity);
|
||||
} else if update_type == UpdateType::Preserve {
|
||||
let mut entity = get_entity_for_update(state, entity_index, update_type)?;
|
||||
let send_table = get_send_table(state, entity.server_class)?;
|
||||
|
||||
Self::read_update(&mut data, send_table, &mut entity.props)?;
|
||||
Self::read_update(&mut data, send_table, &mut entity.props, entity_index)?;
|
||||
|
||||
entities.push(entity);
|
||||
} else if state.entity_classes.contains_key(&entity_index) {
|
||||
|
|
@ -402,6 +402,7 @@ impl PacketEntitiesMessage {
|
|||
stream: &mut Stream,
|
||||
send_table: &SendTable,
|
||||
props: &mut Vec<SendProp>,
|
||||
_entity_index: EntityId,
|
||||
) -> Result<()> {
|
||||
let mut index: i32 = -1;
|
||||
|
||||
|
|
|
|||
|
|
@ -68,7 +68,7 @@ impl Parse<'_> for TempEntitiesMessage {
|
|||
.ok_or(ParseError::UnknownServerClass(class_id))?;
|
||||
|
||||
let mut props = Vec::new();
|
||||
PacketEntitiesMessage::read_update(stream, send_table, &mut props)?;
|
||||
PacketEntitiesMessage::read_update(stream, send_table, &mut props, 0.into())?;
|
||||
|
||||
events.push(EventInfo {
|
||||
class_id,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue