NpcKilledData
in package
Table of Contents
Properties
- $byteSize : int
- $damage : int
- $dropAmount : int
- $dropCoords : Coords
- $dropId : int
- $dropIndex : int
- $killerDirection : int
- $killerId : int
- $npcIndex : int
Methods
- __toString() : string
- Returns a string representation of the object.
- deserialize() : NpcKilledData
- Deserializes an instance of `NpcKilledData` from the provided `EoReader`.
- getByteSize() : int
- Returns the size of the data that this was deserialized from.
- getDamage() : int
- getDropAmount() : int
- getDropCoords() : Coords
- getDropId() : int
- getDropIndex() : int
- getKillerDirection() : int
- getKillerId() : int
- getNpcIndex() : int
- serialize() : void
- Serializes an instance of `NpcKilledData` to the provided `EoWriter`.
- setByteSize() : void
- Sets the size of the data that this was deserialized from.
- setDamage() : void
- setDropAmount() : void
- setDropCoords() : void
- setDropId() : void
- setDropIndex() : void
- setKillerDirection() : void
- setKillerId() : void
- setNpcIndex() : void
Properties
$byteSize
private
int
$byteSize
= 0
$damage
private
int
$damage
$dropAmount
private
int
$dropAmount
$dropCoords
private
Coords
$dropCoords
$dropId
private
int
$dropId
$dropIndex
private
int
$dropIndex
$killerDirection
private
int
$killerDirection
$killerId
private
int
$killerId
$npcIndex
private
int
$npcIndex
Methods
__toString()
Returns a string representation of the object.
public
__toString() : string
Return values
stringdeserialize()
Deserializes an instance of `NpcKilledData` from the provided `EoReader`.
public
static deserialize(EoReader $reader) : NpcKilledData
Parameters
- $reader : EoReader
-
The reader that the data will be deserialized from.
Return values
NpcKilledData —The deserialized data.
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.
getDamage()
public
getDamage() : int
Return values
intgetDropAmount()
public
getDropAmount() : int
Return values
intgetDropCoords()
public
getDropCoords() : Coords
Return values
CoordsgetDropId()
public
getDropId() : int
Return values
intgetDropIndex()
public
getDropIndex() : int
Return values
intgetKillerDirection()
public
getKillerDirection() : int
Return values
intgetKillerId()
public
getKillerId() : int
Return values
intgetNpcIndex()
public
getNpcIndex() : int
Return values
intserialize()
Serializes an instance of `NpcKilledData` to the provided `EoWriter`.
public
static serialize(EoWriter $writer, NpcKilledData $data) : void
Parameters
- $writer : EoWriter
-
The writer that the data will be serialized to.
- $data : NpcKilledData
-
The data to serialize.
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.
setDamage()
public
setDamage(int $damage) : void
Parameters
- $damage : int
setDropAmount()
public
setDropAmount(int $dropAmount) : void
Parameters
- $dropAmount : int
setDropCoords()
public
setDropCoords(Coords $dropCoords) : void
Parameters
- $dropCoords : Coords
setDropId()
public
setDropId(int $dropId) : void
Parameters
- $dropId : int
setDropIndex()
public
setDropIndex(int $dropIndex) : void
Parameters
- $dropIndex : int
setKillerDirection()
public
setKillerDirection(int $killerDirection) : void
Parameters
- $killerDirection : int
setKillerId()
public
setKillerId(int $killerId) : void
Parameters
- $killerId : int
setNpcIndex()
public
setNpcIndex(int $npcIndex) : void
Parameters
- $npcIndex : int