ShopRecord
in package
Table of Contents
Properties
- $crafts : array<string|int, ShopCraftRecord>
- $trades : array<string|int, ShopTradeRecord>
- $behaviorId : int
- $byteSize : int
- $classRequirement : int
- $craftsCount : int
- $maxLevel : int
- $minLevel : int
- $name : string
- $nameLength : int
- $tradesCount : int
Methods
- __toString() : string
- Returns a string representation of the object.
- deserialize() : ShopRecord
- Deserializes an instance of `ShopRecord` from the provided `EoReader`.
- getBehaviorId() : int
- getByteSize() : int
- Returns the size of the data that this was deserialized from.
- getClassRequirement() : int
- getCrafts() : array<string|int, ShopCraftRecord>
- getCraftsCount() : int
- getMaxLevel() : int
- getMinLevel() : int
- getName() : string
- getNameLength() : int
- getTrades() : array<string|int, ShopTradeRecord>
- getTradesCount() : int
- serialize() : void
- Serializes an instance of `ShopRecord` to the provided `EoWriter`.
- setBehaviorId() : void
- setByteSize() : void
- Sets the size of the data that this was deserialized from.
- setClassRequirement() : void
- setCrafts() : void
- setCraftsCount() : void
- setMaxLevel() : void
- setMinLevel() : void
- setName() : void
- setNameLength() : void
- setTrades() : void
- setTradesCount() : void
Properties
$crafts
public
array<string|int, ShopCraftRecord>
$crafts
= []
$trades
public
array<string|int, ShopTradeRecord>
$trades
= []
$behaviorId
private
int
$behaviorId
$byteSize
private
int
$byteSize
= 0
$classRequirement
private
int
$classRequirement
$craftsCount
private
int
$craftsCount
$maxLevel
private
int
$maxLevel
$minLevel
private
int
$minLevel
$name
private
string
$name
= ""
$nameLength
private
int
$nameLength
$tradesCount
private
int
$tradesCount
Methods
__toString()
Returns a string representation of the object.
public
__toString() : string
Return values
stringdeserialize()
Deserializes an instance of `ShopRecord` from the provided `EoReader`.
public
static deserialize(EoReader $reader) : ShopRecord
Parameters
- $reader : EoReader
-
The reader that the data will be deserialized from.
Return values
ShopRecord —The deserialized data.
getBehaviorId()
public
getBehaviorId() : 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.
getClassRequirement()
public
getClassRequirement() : int
Return values
intgetCrafts()
public
getCrafts() : array<string|int, ShopCraftRecord>
Return values
array<string|int, ShopCraftRecord>getCraftsCount()
public
getCraftsCount() : int
Return values
intgetMaxLevel()
public
getMaxLevel() : int
Return values
intgetMinLevel()
public
getMinLevel() : int
Return values
intgetName()
public
getName() : string
Return values
stringgetNameLength()
public
getNameLength() : int
Return values
intgetTrades()
public
getTrades() : array<string|int, ShopTradeRecord>
Return values
array<string|int, ShopTradeRecord>getTradesCount()
public
getTradesCount() : int
Return values
intserialize()
Serializes an instance of `ShopRecord` to the provided `EoWriter`.
public
static serialize(EoWriter $writer, ShopRecord $data) : void
Parameters
- $writer : EoWriter
-
The writer that the data will be serialized to.
- $data : ShopRecord
-
The data to serialize.
setBehaviorId()
public
setBehaviorId(int $behaviorId) : void
Parameters
- $behaviorId : 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.
setClassRequirement()
public
setClassRequirement(int $classRequirement) : void
Parameters
- $classRequirement : int
setCrafts()
public
setCrafts(array<string|int, ShopCraftRecord> $crafts) : void
Parameters
- $crafts : array<string|int, ShopCraftRecord>
setCraftsCount()
public
setCraftsCount(int $craftsCount) : void
Parameters
- $craftsCount : int
setMaxLevel()
public
setMaxLevel(int $maxLevel) : void
Parameters
- $maxLevel : int
setMinLevel()
public
setMinLevel(int $minLevel) : void
Parameters
- $minLevel : int
setName()
public
setName(string $name) : void
Parameters
- $name : string
setNameLength()
public
setNameLength(int $nameLength) : void
Parameters
- $nameLength : int
setTrades()
public
setTrades(array<string|int, ShopTradeRecord> $trades) : void
Parameters
- $trades : array<string|int, ShopTradeRecord>
setTradesCount()
public
setTradesCount(int $tradesCount) : void
Parameters
- $tradesCount : int