Struct tf_demo_parser::demo::message::packetentities::PacketEntity
source · pub struct PacketEntity {
pub server_class: ClassId,
pub entity_index: EntityId,
pub props: Vec<SendProp>,
pub in_pvs: bool,
pub update_type: UpdateType,
pub serial_number: u32,
pub delay: Option<f32>,
pub delta: Option<ServerTick>,
pub baseline_index: usize,
}Fields§
§server_class: ClassId§entity_index: EntityId§props: Vec<SendProp>§in_pvs: bool§update_type: UpdateType§serial_number: u32§delay: Option<f32>§delta: Option<ServerTick>§baseline_index: usizeImplementations§
source§impl PacketEntity
impl PacketEntity
pub fn get_prop_by_identifier( &self, index: &SendPropIdentifier, parser_state: &ParserState ) -> Option<SendProp>
pub fn apply_update(&mut self, props: &[SendProp])
pub fn get_prop_by_name( &self, table_name: &str, name: &str, parser_state: &ParserState ) -> Option<SendProp>
pub fn get_baseline_props<'a>( &self, parser_state: &'a ParserState ) -> Cow<'a, [SendProp]>
pub fn props<'a>( &'a self, parser_state: &'a ParserState ) -> impl Iterator<Item = SendProp> + 'a
Trait Implementations§
source§impl Clone for PacketEntity
impl Clone for PacketEntity
source§fn clone(&self) -> PacketEntity
fn clone(&self) -> PacketEntity
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for PacketEntity
impl Debug for PacketEntity
source§impl<'de> Deserialize<'de> for PacketEntity
impl<'de> Deserialize<'de> for PacketEntity
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for PacketEntity
impl Display for PacketEntity
source§impl From<BaselineEntity> for PacketEntity
impl From<BaselineEntity> for PacketEntity
source§fn from(baseline: BaselineEntity) -> Self
fn from(baseline: BaselineEntity) -> Self
Converts to this type from the input type.
source§impl From<PacketEntity> for BaselineEntity
impl From<PacketEntity> for BaselineEntity
source§fn from(entity: PacketEntity) -> Self
fn from(entity: PacketEntity) -> Self
Converts to this type from the input type.
source§impl PartialEq for PacketEntity
impl PartialEq for PacketEntity
source§fn eq(&self, other: &PacketEntity) -> bool
fn eq(&self, other: &PacketEntity) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for PacketEntity
impl Serialize for PacketEntity
impl StructuralPartialEq for PacketEntity
Auto Trait Implementations§
impl RefUnwindSafe for PacketEntity
impl Send for PacketEntity
impl Sync for PacketEntity
impl Unpin for PacketEntity
impl UnwindSafe for PacketEntity
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more