CharacterStatsUpdate
in package
Table of Contents
Properties
- $baseStats : CharacterBaseStats
- $byteSize : int
- $maxHp : int
- $maxSp : int
- $maxTp : int
- $maxWeight : int
- $secondaryStats : CharacterSecondaryStats
Methods
- __toString() : string
- Returns a string representation of the object.
- deserialize() : CharacterStatsUpdate
- Deserializes an instance of `CharacterStatsUpdate` from the provided `EoReader`.
- getBaseStats() : CharacterBaseStats
- getByteSize() : int
- Returns the size of the data that this was deserialized from.
- getMaxHp() : int
- getMaxSp() : int
- getMaxTp() : int
- getMaxWeight() : int
- getSecondaryStats() : CharacterSecondaryStats
- serialize() : void
- Serializes an instance of `CharacterStatsUpdate` to the provided `EoWriter`.
- setBaseStats() : void
- setByteSize() : void
- Sets the size of the data that this was deserialized from.
- setMaxHp() : void
- setMaxSp() : void
- setMaxTp() : void
- setMaxWeight() : void
- setSecondaryStats() : void
Properties
$baseStats
private
CharacterBaseStats
$baseStats
$byteSize
private
int
$byteSize
= 0
$maxHp
private
int
$maxHp
$maxSp
private
int
$maxSp
$maxTp
private
int
$maxTp
$maxWeight
private
int
$maxWeight
$secondaryStats
private
CharacterSecondaryStats
$secondaryStats
Methods
__toString()
Returns a string representation of the object.
public
__toString() : string
Return values
stringdeserialize()
Deserializes an instance of `CharacterStatsUpdate` from the provided `EoReader`.
public
static deserialize(EoReader $reader) : CharacterStatsUpdate
Parameters
- $reader : EoReader
-
The reader that the data will be deserialized from.
Return values
CharacterStatsUpdate —The deserialized data.
getBaseStats()
public
getBaseStats() : CharacterBaseStats
Return values
CharacterBaseStatsgetByteSize()
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.
getMaxHp()
public
getMaxHp() : int
Return values
intgetMaxSp()
public
getMaxSp() : int
Return values
intgetMaxTp()
public
getMaxTp() : int
Return values
intgetMaxWeight()
public
getMaxWeight() : int
Return values
intgetSecondaryStats()
public
getSecondaryStats() : CharacterSecondaryStats
Return values
CharacterSecondaryStatsserialize()
Serializes an instance of `CharacterStatsUpdate` to the provided `EoWriter`.
public
static serialize(EoWriter $writer, CharacterStatsUpdate $data) : void
Parameters
- $writer : EoWriter
-
The writer that the data will be serialized to.
- $data : CharacterStatsUpdate
-
The data to serialize.
setBaseStats()
public
setBaseStats(CharacterBaseStats $baseStats) : void
Parameters
- $baseStats : CharacterBaseStats
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.
setMaxHp()
public
setMaxHp(int $maxHp) : void
Parameters
- $maxHp : int
setMaxSp()
public
setMaxSp(int $maxSp) : void
Parameters
- $maxSp : int
setMaxTp()
public
setMaxTp(int $maxTp) : void
Parameters
- $maxTp : int
setMaxWeight()
public
setMaxWeight(int $maxWeight) : void
Parameters
- $maxWeight : int
setSecondaryStats()
public
setSecondaryStats(CharacterSecondaryStats $secondaryStats) : void
Parameters
- $secondaryStats : CharacterSecondaryStats