CitizenReplyClientPacket
    
            
            in package
            
        
    
    
    
Subscribing to a town
Table of Contents
Properties
- $answers : array<string|int, string>
 - $behaviorId : int
 - $byteSize : int
 - $sessionId : int
 
Methods
- __toString() : string
 - Returns a string representation of the object.
 - action() : int
 - Returns the packet action associated with this packet.
 - deserialize() : CitizenReplyClientPacket
 - Deserializes an instance of `CitizenReplyClientPacket` from the provided `EoReader`.
 - family() : int
 - Returns the packet family associated with this packet.
 - getAnswers() : array<string|int, string>
 - getBehaviorId() : int
 - getByteSize() : int
 - Returns the size of the data that this was deserialized from.
 - getSessionId() : int
 - serialize() : void
 - Serializes an instance of `CitizenReplyClientPacket` to the provided `EoWriter`.
 - setAnswers() : void
 - setBehaviorId() : void
 - setByteSize() : void
 - Sets the size of the data that this was deserialized from.
 - setSessionId() : void
 - write() : void
 - Serializes and writes this packet to the provided EoWriter.
 
Properties
$answers
    public
        array<string|int, string>
    $answers
     = []
    
    
    
$behaviorId
    private
        int
    $behaviorId
    
    
    
    
$byteSize
    private
        int
    $byteSize
     = 0
    
    
    
$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 `CitizenReplyClientPacket` from the provided `EoReader`.
    public
            static        deserialize(EoReader $reader) : CitizenReplyClientPacket
    Parameters
- $reader : EoReader
 - 
                    
The reader that the data will be deserialized from.
 
Return values
CitizenReplyClientPacket —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.
getAnswers()
    public
                    getAnswers() : array<string|int, string>
    Return values
array<string|int, string>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.
getSessionId()
    public
                    getSessionId() : int
    Return values
intserialize()
Serializes an instance of `CitizenReplyClientPacket` to the provided `EoWriter`.
    public
            static        serialize(EoWriter $writer, CitizenReplyClientPacket $data) : void
    Parameters
- $writer : EoWriter
 - 
                    
The writer that the data will be serialized to.
 - $data : CitizenReplyClientPacket
 - 
                    
The data to serialize.
 
setAnswers()
    public
                    setAnswers(array<string|int, string> $answers) : void
    Parameters
- $answers : array<string|int, string>
 
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.
 
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.