Class TShopTradeItem

Unit

Declaration

type TShopTradeItem = class(TInterfacedObject, IShopTradeItem)

Description

An item that a shop can buy or sell

Hierarchy

Overview

Methods

Public function GetByteSize: Cardinal;
Public function GetItemId: Cardinal;
Public procedure SetItemId(ItemId: Cardinal);
Public function GetBuyPrice: Cardinal;
Public procedure SetBuyPrice(BuyPrice: Cardinal);
Public function GetSellPrice: Cardinal;
Public procedure SetSellPrice(SellPrice: Cardinal);
Public function GetMaxBuyAmount: Cardinal;
Public procedure SetMaxBuyAmount(MaxBuyAmount: Cardinal);
Public procedure Serialize(Writer: TEoWriter);
Public class function Deserialize(Reader: TEoReader): TShopTradeItem;

Properties

Public property ByteSize: Cardinal read GetByteSize;
Public property ItemId: Cardinal read GetItemId write SetItemId;
Public property BuyPrice: Cardinal read GetBuyPrice write SetBuyPrice;
Public property SellPrice: Cardinal read GetSellPrice write SetSellPrice;
Public property MaxBuyAmount: Cardinal read GetMaxBuyAmount write SetMaxBuyAmount;

Description

Methods

Public function GetByteSize: Cardinal;

This item has no description.

Public function GetItemId: Cardinal;

This item has no description.

Public procedure SetItemId(ItemId: Cardinal);

This item has no description.

Public function GetBuyPrice: Cardinal;

This item has no description.

Public procedure SetBuyPrice(BuyPrice: Cardinal);

This item has no description.

Public function GetSellPrice: Cardinal;

This item has no description.

Public procedure SetSellPrice(SellPrice: Cardinal);

This item has no description.

Public function GetMaxBuyAmount: Cardinal;

This item has no description.

Public procedure SetMaxBuyAmount(MaxBuyAmount: Cardinal);

This item has no description.

Public procedure Serialize(Writer: TEoWriter);

Serializes this TShopTradeItem object to the provided TEoWriter.

Parameters
Writer
The writer that this object will be serialized to
Public class function Deserialize(Reader: TEoReader): TShopTradeItem;

Deserializes an instance of TShopTradeItem from the provided TEoReader.

Parameters
Reader
The reader that the object will be deserialized from
Returns

The deserialized object

Properties

Public property ByteSize: Cardinal read GetByteSize;

The size of the data that this object was deserialized from.

Note
0 if the instance was not created by the Deserialize method.

Public property ItemId: Cardinal read GetItemId write SetItemId;

Note
Value range is 0-64008

Public property BuyPrice: Cardinal read GetBuyPrice write SetBuyPrice;

Note
Value range is 0-16194276

Public property SellPrice: Cardinal read GetSellPrice write SetSellPrice;

Note
Value range is 0-16194276

Public property MaxBuyAmount: Cardinal read GetMaxBuyAmount write SetMaxBuyAmount;

Note
Value range is 0-252


Generated by PasDoc 0.16.0-snapshot.