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: BaselineIndex,
}
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: BaselineIndex
Implementations§
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 duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const 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§impl Serialize for PacketEntity
impl Serialize for PacketEntity
impl StructuralPartialEq for PacketEntity
Auto Trait Implementations§
impl Freeze for PacketEntity
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more