Documentation

TradeItemData
in package

Table of Contents

Properties

$partnerItems  : array<string|int, Item>
$yourItems  : array<string|int, Item>
$byteSize  : int
$partnerPlayerId  : int
$yourPlayerId  : int

Methods

__toString()  : string
Returns a string representation of the object.
deserialize()  : TradeItemData
Deserializes an instance of `TradeItemData` from the provided `EoReader`.
getByteSize()  : int
Returns the size of the data that this was deserialized from.
getPartnerItems()  : array<string|int, Item>
getPartnerPlayerId()  : int
getYourItems()  : array<string|int, Item>
getYourPlayerId()  : int
serialize()  : void
Serializes an instance of `TradeItemData` to the provided `EoWriter`.
setByteSize()  : void
Sets the size of the data that this was deserialized from.
setPartnerItems()  : void
setPartnerPlayerId()  : void
setYourItems()  : void
setYourPlayerId()  : void

Properties

Methods

__toString()

Returns a string representation of the object.

public __toString() : string
Return values
string

deserialize()

Deserializes an instance of `TradeItemData` from the provided `EoReader`.

public static deserialize(EoReader $reader) : TradeItemData
Parameters
$reader : EoReader

The reader that the data will be deserialized from.

Return values
TradeItemData

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.

getPartnerItems()

public getPartnerItems() : array<string|int, Item>
Return values
array<string|int, Item>

getPartnerPlayerId()

public getPartnerPlayerId() : int
Return values
int

getYourItems()

public getYourItems() : array<string|int, Item>
Return values
array<string|int, Item>

getYourPlayerId()

public getYourPlayerId() : int
Return values
int

serialize()

Serializes an instance of `TradeItemData` to the provided `EoWriter`.

public static serialize(EoWriter $writer, TradeItemData $data) : void
Parameters
$writer : EoWriter

The writer that the data will be serialized to.

$data : TradeItemData

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.

setPartnerItems()

public setPartnerItems(array<string|int, Item$partnerItems) : void
Parameters
$partnerItems : array<string|int, Item>

setPartnerPlayerId()

public setPartnerPlayerId(int $partnerPlayerId) : void
Parameters
$partnerPlayerId : int

setYourItems()

public setYourItems(array<string|int, Item$yourItems) : void
Parameters
$yourItems : array<string|int, Item>

setYourPlayerId()

public setYourPlayerId(int $yourPlayerId) : void
Parameters
$yourPlayerId : int

        
On this page

Search results