ItemMapInfo
in package
Table of Contents
Properties
Methods
- __toString() : string
- Returns a string representation of the object.
- deserialize() : ItemMapInfo
- Deserializes an instance of `ItemMapInfo` from the provided `EoReader`.
- getAmount() : int
- getByteSize() : int
- Returns the size of the data that this was deserialized from.
- getCoords() : Coords
- getId() : int
- getUid() : int
- serialize() : void
- Serializes an instance of `ItemMapInfo` to the provided `EoWriter`.
- setAmount() : void
- setByteSize() : void
- Sets the size of the data that this was deserialized from.
- setCoords() : void
- setId() : void
- setUid() : void
Properties
$amount
private
int
$amount
$byteSize
private
int
$byteSize
= 0
$coords
private
Coords
$coords
$id
private
int
$id
$uid
private
int
$uid
Methods
__toString()
Returns a string representation of the object.
public
__toString() : string
Return values
stringdeserialize()
Deserializes an instance of `ItemMapInfo` from the provided `EoReader`.
public
static deserialize(EoReader $reader) : ItemMapInfo
Parameters
- $reader : EoReader
-
The reader that the data will be deserialized from.
Return values
ItemMapInfo —The deserialized data.
getAmount()
public
getAmount() : 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.
getCoords()
public
getCoords() : Coords
Return values
CoordsgetId()
public
getId() : int
Return values
intgetUid()
public
getUid() : int
Return values
intserialize()
Serializes an instance of `ItemMapInfo` to the provided `EoWriter`.
public
static serialize(EoWriter $writer, ItemMapInfo $data) : void
Parameters
- $writer : EoWriter
-
The writer that the data will be serialized to.
- $data : ItemMapInfo
-
The data to serialize.
setAmount()
public
setAmount(int $amount) : void
Parameters
- $amount : 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.
setCoords()
public
setCoords(Coords $coords) : void
Parameters
- $coords : Coords
setId()
public
setId(int $id) : void
Parameters
- $id : int
setUid()
public
setUid(int $uid) : void
Parameters
- $uid : int