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