WelcomeCodeDataEnterGame
in package
implements
WelcomeCodeData
Data associated with welcomeCode value WelcomeCode::ENTERGAME
Table of Contents
Interfaces
- WelcomeCodeData
- Data associated with different values of the `welcomeCode` field.
Properties
- $items : array<string|int, Item>
- $news : array<string|int, string>
- $spells : array<string|int, Spell>
- $byteSize : int
- $nearby : NearbyInfo
- $weight : Weight
Methods
- __toString() : string
- Returns a string representation of the object.
- deserialize() : WelcomeCodeDataEnterGame
- Deserializes an instance of `WelcomeCodeDataEnterGame` from the provided `EoReader`.
- getByteSize() : int
- Returns the size of the data that this was deserialized from.
- getItems() : array<string|int, Item>
- getNearby() : NearbyInfo
- getNews() : array<string|int, string>
- getSpells() : array<string|int, Spell>
- getWeight() : Weight
- serialize() : void
- Serializes an instance of `WelcomeCodeDataEnterGame` to the provided `EoWriter`.
- setByteSize() : void
- Sets the size of the data that this was deserialized from.
- setItems() : void
- setNearby() : void
- setNews() : void
- setSpells() : void
- setWeight() : void
Properties
$items
public
array<string|int, Item>
$items
= []
$news
public
array<string|int, string>
$news
= []
$spells
public
array<string|int, Spell>
$spells
= []
$byteSize
private
int
$byteSize
= 0
$nearby
private
NearbyInfo
$nearby
$weight
private
Weight
$weight
Methods
__toString()
Returns a string representation of the object.
public
__toString() : string
Return values
stringdeserialize()
Deserializes an instance of `WelcomeCodeDataEnterGame` from the provided `EoReader`.
public
static deserialize(EoReader $reader) : WelcomeCodeDataEnterGame
Parameters
- $reader : EoReader
-
The reader that the data will be deserialized from.
Return values
WelcomeCodeDataEnterGame —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.
getItems()
public
getItems() : array<string|int, Item>
Return values
array<string|int, Item>getNearby()
public
getNearby() : NearbyInfo
Return values
NearbyInfogetNews()
public
getNews() : array<string|int, string>
Return values
array<string|int, string>getSpells()
public
getSpells() : array<string|int, Spell>
Return values
array<string|int, Spell>getWeight()
public
getWeight() : Weight
Return values
Weightserialize()
Serializes an instance of `WelcomeCodeDataEnterGame` to the provided `EoWriter`.
public
static serialize(EoWriter $writer, WelcomeCodeDataEnterGame $data) : void
Parameters
- $writer : EoWriter
-
The writer that the data will be serialized to.
- $data : WelcomeCodeDataEnterGame
-
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.
setItems()
public
setItems(array<string|int, Item> $items) : void
Parameters
- $items : array<string|int, Item>
setNearby()
public
setNearby(NearbyInfo $nearby) : void
Parameters
- $nearby : NearbyInfo
setNews()
public
setNews(array<string|int, string> $news) : void
Parameters
- $news : array<string|int, string>
setSpells()
public
setSpells(array<string|int, Spell> $spells) : void
Parameters
- $spells : array<string|int, Spell>
setWeight()
public
setWeight(Weight $weight) : void
Parameters
- $weight : Weight