Struct lu_packets::world::server::LevelLoadComplete
source · [−]pub struct LevelLoadComplete {
pub zone_id: ZoneId,
}
Expand description
Reports to the server that client-side loading has finished.
Trigger
The client finishing a zone load initiated by LoadStaticZone
.
Handling / Response
Respond with CreateCharacter
containing details about the player’s character. Add the client to your server’s replica manager, so that existing objects in range are replicated using ReplicaConstruction
. Create the character’s replica object and and let the replica manager broadcast its construction to all clients in range. Finally, send ServerDoneLoadingAllObjects
from the character object to the client.
Fields
zone_id: ZoneId
The ID of the zone that was loaded. Servers should not trust this, as a player could use it to get into zones they don’t belong.
Trait Implementations
sourceimpl Debug for LevelLoadComplete
impl Debug for LevelLoadComplete
sourceimpl<__ENDIO_ENDIANNESS: Endianness, __ENDIO_READER: Read + ERead<__ENDIO_ENDIANNESS>> Deserialize<__ENDIO_ENDIANNESS, __ENDIO_READER> for LevelLoadCompletewhere
ZoneId: Deserialize<__ENDIO_ENDIANNESS, __ENDIO_READER>,
impl<__ENDIO_ENDIANNESS: Endianness, __ENDIO_READER: Read + ERead<__ENDIO_ENDIANNESS>> Deserialize<__ENDIO_ENDIANNESS, __ENDIO_READER> for LevelLoadCompletewhere
ZoneId: Deserialize<__ENDIO_ENDIANNESS, __ENDIO_READER>,
sourcefn deserialize(reader: &mut __ENDIO_READER) -> Result<Self>
fn deserialize(reader: &mut __ENDIO_READER) -> Result<Self>
Deserializes the type by reading from the reader.
sourceimpl PartialEq<LevelLoadComplete> for LevelLoadComplete
impl PartialEq<LevelLoadComplete> for LevelLoadComplete
sourcefn eq(&self, other: &LevelLoadComplete) -> bool
fn eq(&self, other: &LevelLoadComplete) -> bool
sourceimpl<'__ENDIO_LIFETIME, __ENDIO_ENDIANNESS: Endianness, __ENDIO_WRITER: Write + EWrite<__ENDIO_ENDIANNESS>> Serialize<__ENDIO_ENDIANNESS, __ENDIO_WRITER> for &'__ENDIO_LIFETIME LevelLoadCompletewhere
&'__ENDIO_LIFETIME ZoneId: Serialize<__ENDIO_ENDIANNESS, __ENDIO_WRITER>,
impl<'__ENDIO_LIFETIME, __ENDIO_ENDIANNESS: Endianness, __ENDIO_WRITER: Write + EWrite<__ENDIO_ENDIANNESS>> Serialize<__ENDIO_ENDIANNESS, __ENDIO_WRITER> for &'__ENDIO_LIFETIME LevelLoadCompletewhere
&'__ENDIO_LIFETIME ZoneId: Serialize<__ENDIO_ENDIANNESS, __ENDIO_WRITER>,
impl StructuralPartialEq for LevelLoadComplete
Auto Trait Implementations
impl RefUnwindSafe for LevelLoadComplete
impl Send for LevelLoadComplete
impl Sync for LevelLoadComplete
impl Unpin for LevelLoadComplete
impl UnwindSafe for LevelLoadComplete
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more