MapDamageTypeDataTpDrain
in package
implements
MapDamageTypeData
Data associated with mapDamageType value MapDamageType::TPDRAIN
Table of Contents
Interfaces
- MapDamageTypeData
- Data associated with different values of the `mapDamageType` field.
Properties
Methods
- __toString() : string
- Returns a string representation of the object.
- deserialize() : MapDamageTypeDataTpDrain
- Deserializes an instance of `MapDamageTypeDataTpDrain` from the provided `EoReader`.
- getByteSize() : int
- Returns the size of the data that this was deserialized from.
- getMaxTp() : int
- getTp() : int
- getTpDamage() : int
- serialize() : void
- Serializes an instance of `MapDamageTypeDataTpDrain` to the provided `EoWriter`.
- setByteSize() : void
- Sets the size of the data that this was deserialized from.
- setMaxTp() : void
- setTp() : void
- setTpDamage() : void
Properties
$byteSize
private
int
$byteSize
= 0
$maxTp
private
int
$maxTp
$tp
private
int
$tp
$tpDamage
private
int
$tpDamage
Methods
__toString()
Returns a string representation of the object.
public
__toString() : string
Return values
stringdeserialize()
Deserializes an instance of `MapDamageTypeDataTpDrain` from the provided `EoReader`.
public
static deserialize(EoReader $reader) : MapDamageTypeDataTpDrain
Parameters
- $reader : EoReader
-
The reader that the data will be deserialized from.
Return values
MapDamageTypeDataTpDrain —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.
getMaxTp()
public
getMaxTp() : int
Return values
intgetTp()
public
getTp() : int
Return values
intgetTpDamage()
public
getTpDamage() : int
Return values
intserialize()
Serializes an instance of `MapDamageTypeDataTpDrain` to the provided `EoWriter`.
public
static serialize(EoWriter $writer, MapDamageTypeDataTpDrain $data) : void
Parameters
- $writer : EoWriter
-
The writer that the data will be serialized to.
- $data : MapDamageTypeDataTpDrain
-
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.
setMaxTp()
public
setMaxTp(int $maxTp) : void
Parameters
- $maxTp : int
setTp()
public
setTp(int $tp) : void
Parameters
- $tp : int
setTpDamage()
public
setTpDamage(int $tpDamage) : void
Parameters
- $tpDamage : int