BookReplyServerPacket
in package
Reply to requesting a book
Table of Contents
Properties
- $questNames : array<string|int, string>
- $byteSize : int
- $details : CharacterDetails
- $icon : int
Methods
- __toString() : string
- Returns a string representation of the object.
- action() : int
- Returns the packet action associated with this packet.
- deserialize() : BookReplyServerPacket
- Deserializes an instance of `BookReplyServerPacket` from the provided `EoReader`.
- family() : int
- Returns the packet family associated with this packet.
- getByteSize() : int
- Returns the size of the data that this was deserialized from.
- getDetails() : CharacterDetails
- getIcon() : int
- getQuestNames() : array<string|int, string>
- serialize() : void
- Serializes an instance of `BookReplyServerPacket` to the provided `EoWriter`.
- setByteSize() : void
- Sets the size of the data that this was deserialized from.
- setDetails() : void
- setIcon() : void
- setQuestNames() : void
- write() : void
- Serializes and writes this packet to the provided EoWriter.
Properties
$questNames
public
array<string|int, string>
$questNames
= []
$byteSize
private
int
$byteSize
= 0
$details
private
CharacterDetails
$details
$icon
private
int
$icon
Methods
__toString()
Returns a string representation of the object.
public
__toString() : string
Return values
stringaction()
Returns the packet action associated with this packet.
public
static action() : int
Return values
int —The packet action associated with this packet.
deserialize()
Deserializes an instance of `BookReplyServerPacket` from the provided `EoReader`.
public
static deserialize(EoReader $reader) : BookReplyServerPacket
Parameters
- $reader : EoReader
-
The reader that the data will be deserialized from.
Return values
BookReplyServerPacket —The deserialized data.
family()
Returns the packet family associated with this packet.
public
static family() : int
Return values
int —The packet family associated with this packet.
getByteSize()
Returns the size of the data that this was deserialized from.
public
getByteSize() : int
Return values
int —The size of the data that this was deserialized from.
getDetails()
public
getDetails() : CharacterDetails
Return values
CharacterDetailsgetIcon()
public
getIcon() : int
Return values
intgetQuestNames()
public
getQuestNames() : array<string|int, string>
Return values
array<string|int, string>serialize()
Serializes an instance of `BookReplyServerPacket` to the provided `EoWriter`.
public
static serialize(EoWriter $writer, BookReplyServerPacket $data) : void
Parameters
- $writer : EoWriter
-
The writer that the data will be serialized to.
- $data : BookReplyServerPacket
-
The data to serialize.
setByteSize()
Sets the size of the data that this was deserialized from.
public
setByteSize(int $byteSize) : void
Parameters
- $byteSize : int
-
The size of the data that this was deserialized from.
setDetails()
public
setDetails(CharacterDetails $details) : void
Parameters
- $details : CharacterDetails
setIcon()
public
setIcon(int $icon) : void
Parameters
- $icon : int
setQuestNames()
public
setQuestNames(array<string|int, string> $questNames) : void
Parameters
- $questNames : array<string|int, string>
write()
Serializes and writes this packet to the provided EoWriter.
public
write(EoWriter $writer) : void
Parameters
- $writer : EoWriter
-
The writer that this packet will be written to.