Documentation

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

$byteSize

private int $byteSize = 0

$spawnTime

private int $spawnTime

$spawnType

private int $spawnType

Methods

__toString()

Returns a string representation of the object.

public __toString() : string
Return values
string

deserialize()

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
int

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.

getId()

public getId() : int
Return values
int

getSpawnTime()

public getSpawnTime() : int
Return values
int

getSpawnType()

public getSpawnType() : int
Return values
int

serialize()

Serializes an instance of `MapNpc` to the provided `EoWriter`.

public static serialize(EoWriter $writer, MapNpc $data) : void
Parameters
$writer : EoWriter

The writer that the data will be serialized to.

$data : MapNpc

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.

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

        
On this page

Search results