Struct lu_packets::world::server::CharacterLoginRequest
source · [−]pub struct CharacterLoginRequest {
pub char_id: ObjId,
}
Expand description
Indicates that the player has chosen a character to play with.
Trigger
The player selecting the character in the character selection screen and pressing play.
Handling
Do what’s necessary to let the character join the world it was last in. In the common case of the world server instance being different from the current instance, redirect the client to the world instance.
Response
Respond with LoadStaticZone
if you’re not switching instances, or TransferToWorld
if you do.
Fields
char_id: ObjId
The object ID of the chosen character.
Trait Implementations
sourceimpl Debug for CharacterLoginRequest
impl Debug for CharacterLoginRequest
sourceimpl<__ENDIO_ENDIANNESS: Endianness, __ENDIO_READER: Read + ERead<__ENDIO_ENDIANNESS>> Deserialize<__ENDIO_ENDIANNESS, __ENDIO_READER> for CharacterLoginRequestwhere
ObjId: Deserialize<__ENDIO_ENDIANNESS, __ENDIO_READER>,
impl<__ENDIO_ENDIANNESS: Endianness, __ENDIO_READER: Read + ERead<__ENDIO_ENDIANNESS>> Deserialize<__ENDIO_ENDIANNESS, __ENDIO_READER> for CharacterLoginRequestwhere
ObjId: 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<CharacterLoginRequest> for CharacterLoginRequest
impl PartialEq<CharacterLoginRequest> for CharacterLoginRequest
sourcefn eq(&self, other: &CharacterLoginRequest) -> bool
fn eq(&self, other: &CharacterLoginRequest) -> bool
sourceimpl<'__ENDIO_LIFETIME, __ENDIO_ENDIANNESS: Endianness, __ENDIO_WRITER: Write + EWrite<__ENDIO_ENDIANNESS>> Serialize<__ENDIO_ENDIANNESS, __ENDIO_WRITER> for &'__ENDIO_LIFETIME CharacterLoginRequestwhere
&'__ENDIO_LIFETIME ObjId: 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 CharacterLoginRequestwhere
&'__ENDIO_LIFETIME ObjId: Serialize<__ENDIO_ENDIANNESS, __ENDIO_WRITER>,
impl StructuralPartialEq for CharacterLoginRequest
Auto Trait Implementations
impl RefUnwindSafe for CharacterLoginRequest
impl Send for CharacterLoginRequest
impl Sync for CharacterLoginRequest
impl Unpin for CharacterLoginRequest
impl UnwindSafe for CharacterLoginRequest
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