Struct pso2packetlib::protocol::objects::InteractPacket
source · pub struct InteractPacket {
pub unk1: [u8; 12],
pub object1: ObjectHeader,
pub unk2: [u8; 4],
pub object3: ObjectHeader,
pub object4: [u8; 16],
pub action: AsciiString,
}Expand description
(0x04, 0x14) Client Interaction.
(C -> S) Sent when players interacts with some object.
Respond with: crate::protocol::Packet::SetTag (optional)
Fields§
§unk1: [u8; 12]§object1: ObjectHeaderTarget. (?)
unk2: [u8; 4]§object3: ObjectHeader§object4: [u8; 16]§action: AsciiStringName of the action.
Trait Implementations§
source§impl Clone for InteractPacket
impl Clone for InteractPacket
source§fn clone(&self) -> InteractPacket
fn clone(&self) -> InteractPacket
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 InteractPacket
impl Debug for InteractPacket
source§impl Default for InteractPacket
impl Default for InteractPacket
source§fn default() -> InteractPacket
fn default() -> InteractPacket
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for InteractPacketwhere
InteractPacket: Default,
impl<'de> Deserialize<'de> for InteractPacketwhere
InteractPacket: Default,
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 PacketReadWrite for InteractPacket
impl PacketReadWrite for InteractPacket
source§fn read(
reader: &mut (impl Read + Seek),
flags: &Flags,
packet_type: PacketType,
) -> Result<Self, PacketError>
fn read( reader: &mut (impl Read + Seek), flags: &Flags, packet_type: PacketType, ) -> Result<Self, PacketError>
Reads a packet from a stream.
source§fn write(&self, packet_type: PacketType) -> Result<Vec<u8>, PacketError>
fn write(&self, packet_type: PacketType) -> Result<Vec<u8>, PacketError>
Writes a packet to a Vec.
source§impl PartialEq for InteractPacket
impl PartialEq for InteractPacket
source§fn eq(&self, other: &InteractPacket) -> bool
fn eq(&self, other: &InteractPacket) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for InteractPacket
impl Serialize for InteractPacket
impl StructuralPartialEq for InteractPacket
Auto Trait Implementations§
impl Freeze for InteractPacket
impl RefUnwindSafe for InteractPacket
impl Send for InteractPacket
impl Sync for InteractPacket
impl Unpin for InteractPacket
impl UnwindSafe for InteractPacket
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)