QuestDialogServerPacket
in package
Quest selection dialog
Table of Contents
Properties
- $dialogEntries : array<string|int, DialogEntry>
- $questEntries : array<string|int, DialogQuestEntry>
- $behaviorId : int
- $byteSize : int
- $dialogId : int
- $questCount : int
- $questId : int
- $sessionId : int
Methods
- __toString() : string
- Returns a string representation of the object.
- action() : int
- Returns the packet action associated with this packet.
- deserialize() : QuestDialogServerPacket
- Deserializes an instance of `QuestDialogServerPacket` from the provided `EoReader`.
- family() : int
- Returns the packet family associated with this packet.
- getBehaviorId() : int
- getByteSize() : int
- Returns the size of the data that this was deserialized from.
- getDialogEntries() : array<string|int, DialogEntry>
- getDialogId() : int
- getQuestCount() : int
- getQuestEntries() : array<string|int, DialogQuestEntry>
- getQuestId() : int
- getSessionId() : int
- serialize() : void
- Serializes an instance of `QuestDialogServerPacket` to the provided `EoWriter`.
- setBehaviorId() : void
- setByteSize() : void
- Sets the size of the data that this was deserialized from.
- setDialogEntries() : void
- setDialogId() : void
- setQuestCount() : void
- setQuestEntries() : void
- setQuestId() : void
- setSessionId() : void
- write() : void
- Serializes and writes this packet to the provided EoWriter.
Properties
$dialogEntries
public
array<string|int, DialogEntry>
$dialogEntries
= []
$questEntries
public
array<string|int, DialogQuestEntry>
$questEntries
= []
$behaviorId
private
int
$behaviorId
$byteSize
private
int
$byteSize
= 0
$dialogId
private
int
$dialogId
$questCount
private
int
$questCount
$questId
private
int
$questId
$sessionId
private
int
$sessionId
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 `QuestDialogServerPacket` from the provided `EoReader`.
public
static deserialize(EoReader $reader) : QuestDialogServerPacket
Parameters
- $reader : EoReader
-
The reader that the data will be deserialized from.
Return values
QuestDialogServerPacket —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.
getBehaviorId()
public
getBehaviorId() : int
Return values
intgetByteSize()
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.
getDialogEntries()
public
getDialogEntries() : array<string|int, DialogEntry>
Return values
array<string|int, DialogEntry>getDialogId()
public
getDialogId() : int
Return values
intgetQuestCount()
public
getQuestCount() : int
Return values
intgetQuestEntries()
public
getQuestEntries() : array<string|int, DialogQuestEntry>
Return values
array<string|int, DialogQuestEntry>getQuestId()
public
getQuestId() : int
Return values
intgetSessionId()
public
getSessionId() : int
Return values
intserialize()
Serializes an instance of `QuestDialogServerPacket` to the provided `EoWriter`.
public
static serialize(EoWriter $writer, QuestDialogServerPacket $data) : void
Parameters
- $writer : EoWriter
-
The writer that the data will be serialized to.
- $data : QuestDialogServerPacket
-
The data to serialize.
setBehaviorId()
public
setBehaviorId(int $behaviorId) : void
Parameters
- $behaviorId : int
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.
setDialogEntries()
public
setDialogEntries(array<string|int, DialogEntry> $dialogEntries) : void
Parameters
- $dialogEntries : array<string|int, DialogEntry>
setDialogId()
public
setDialogId(int $dialogId) : void
Parameters
- $dialogId : int
setQuestCount()
public
setQuestCount(int $questCount) : void
Parameters
- $questCount : int
setQuestEntries()
public
setQuestEntries(array<string|int, DialogQuestEntry> $questEntries) : void
Parameters
- $questEntries : array<string|int, DialogQuestEntry>
setQuestId()
public
setQuestId(int $questId) : void
Parameters
- $questId : int
setSessionId()
public
setSessionId(int $sessionId) : void
Parameters
- $sessionId : int
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.