pub struct PacketEntitiesMessage {
pub entities: Vec<PacketEntity>,
pub removed_entities: Vec<EntityId>,
pub max_entries: u16,
pub delta: Option<ServerTick>,
pub base_line: BaselineIndex,
pub updated_base_line: bool,
}
Fields§
§entities: Vec<PacketEntity>
§removed_entities: Vec<EntityId>
§max_entries: u16
§delta: Option<ServerTick>
§base_line: BaselineIndex
§updated_base_line: bool
Implementations§
Source§impl PacketEntitiesMessage
impl PacketEntitiesMessage
pub fn read_update( stream: &mut Stream<'_>, send_table: &SendTable, props: &mut Vec<SendProp>, entity_index: EntityId, ) -> Result<()>
pub fn write_update<'a, Props: IntoIterator<Item = &'a SendProp>>( props: Props, stream: &mut BitWriteStream<'_, LittleEndian>, send_table: &SendTable, _entity_index: EntityId, ) -> Result<()>
Trait Implementations§
Source§impl Clone for PacketEntitiesMessage
impl Clone for PacketEntitiesMessage
Source§fn clone(&self) -> PacketEntitiesMessage
fn clone(&self) -> PacketEntitiesMessage
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 PacketEntitiesMessage
impl Debug for PacketEntitiesMessage
Source§impl Default for PacketEntitiesMessage
impl Default for PacketEntitiesMessage
Source§fn default() -> PacketEntitiesMessage
fn default() -> PacketEntitiesMessage
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PacketEntitiesMessage
impl<'de> Deserialize<'de> for PacketEntitiesMessage
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 Encode for PacketEntitiesMessage
impl Encode for PacketEntitiesMessage
fn encode( &self, stream: &mut BitWriteStream<'_, LittleEndian>, state: &ParserState, ) -> Result<()>
Source§impl Parse<'_> for PacketEntitiesMessage
impl Parse<'_> for PacketEntitiesMessage
Source§impl ParseBitSkip<'_> for PacketEntitiesMessage
impl ParseBitSkip<'_> for PacketEntitiesMessage
fn parse_skip(stream: &mut Stream<'_>, _state: &ParserState) -> Result<()>
Source§impl PartialEq for PacketEntitiesMessage
impl PartialEq for PacketEntitiesMessage
Source§impl Serialize for PacketEntitiesMessage
impl Serialize for PacketEntitiesMessage
impl StructuralPartialEq for PacketEntitiesMessage
Auto Trait Implementations§
impl Freeze for PacketEntitiesMessage
impl RefUnwindSafe for PacketEntitiesMessage
impl Send for PacketEntitiesMessage
impl Sync for PacketEntitiesMessage
impl Unpin for PacketEntitiesMessage
impl UnwindSafe for PacketEntitiesMessage
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