AdminInteractListServerPacket
in package
Admin character inventory popup
Table of Contents
Properties
- $bank : array<string|int, ThreeItem>
- $inventory : array<string|int, Item>
- $byteSize : int
- $goldBank : int
- $name : string
- $usage : int
Methods
- __toString() : string
- Returns a string representation of the object.
- action() : int
- Returns the packet action associated with this packet.
- deserialize() : AdminInteractListServerPacket
- Deserializes an instance of `AdminInteractListServerPacket` from the provided `EoReader`.
- family() : int
- Returns the packet family associated with this packet.
- getBank() : array<string|int, ThreeItem>
- getByteSize() : int
- Returns the size of the data that this was deserialized from.
- getGoldBank() : int
- getInventory() : array<string|int, Item>
- getName() : string
- getUsage() : int
- serialize() : void
- Serializes an instance of `AdminInteractListServerPacket` to the provided `EoWriter`.
- setBank() : void
- setByteSize() : void
- Sets the size of the data that this was deserialized from.
- setGoldBank() : void
- setInventory() : void
- setName() : void
- setUsage() : void
- write() : void
- Serializes and writes this packet to the provided EoWriter.
Properties
$bank
public
array<string|int, ThreeItem>
$bank
= []
$inventory
public
array<string|int, Item>
$inventory
= []
$byteSize
private
int
$byteSize
= 0
$goldBank
private
int
$goldBank
$name
private
string
$name
= ""
$usage
private
int
$usage
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 `AdminInteractListServerPacket` from the provided `EoReader`.
public
static deserialize(EoReader $reader) : AdminInteractListServerPacket
Parameters
- $reader : EoReader
-
The reader that the data will be deserialized from.
Return values
AdminInteractListServerPacket —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.
getBank()
public
getBank() : array<string|int, ThreeItem>
Return values
array<string|int, ThreeItem>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.
getGoldBank()
public
getGoldBank() : int
Return values
intgetInventory()
public
getInventory() : array<string|int, Item>
Return values
array<string|int, Item>getName()
public
getName() : string
Return values
stringgetUsage()
public
getUsage() : int
Return values
intserialize()
Serializes an instance of `AdminInteractListServerPacket` to the provided `EoWriter`.
public
static serialize(EoWriter $writer, AdminInteractListServerPacket $data) : void
Parameters
- $writer : EoWriter
-
The writer that the data will be serialized to.
- $data : AdminInteractListServerPacket
-
The data to serialize.
setBank()
public
setBank(array<string|int, ThreeItem> $bank) : void
Parameters
- $bank : array<string|int, ThreeItem>
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.
setGoldBank()
public
setGoldBank(int $goldBank) : void
Parameters
- $goldBank : int
setInventory()
public
setInventory(array<string|int, Item> $inventory) : void
Parameters
- $inventory : array<string|int, Item>
setName()
public
setName(string $name) : void
Parameters
- $name : string
setUsage()
public
setUsage(int $usage) : void
Parameters
- $usage : 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.