Class TShopTradeRecord

Unit

Declaration

type TShopTradeRecord = class(TInterfacedObject, IShopTradeRecord)

Description

Record of an item that can be bought or sold in a shop

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 _GetMaxAmount: Cardinal;
Public procedure _SetMaxAmount(MaxAmount: Cardinal);
Public procedure Serialize(Writer: TEoWriter);
Public class function Deserialize(Reader: TEoReader): TShopTradeRecord;

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 MaxAmount: Cardinal read _GetMaxAmount write _SetMaxAmount;

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 _GetMaxAmount: Cardinal;

This item has no description.

Public procedure _SetMaxAmount(MaxAmount: Cardinal);

This item has no description.

Public procedure Serialize(Writer: TEoWriter);

Serializes this TShopTradeRecord object to the provided TEoWriter.

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

Deserializes an instance of TShopTradeRecord 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;

How much it costs to buy the item from the shop

Note
Value range is 0-16194276

Public property SellPrice: Cardinal read _GetSellPrice write _SetSellPrice;

How much the shop will pay for the item

Note
Value range is 0-16194276

Public property MaxAmount: Cardinal read _GetMaxAmount write _SetMaxAmount;

Max amount of the item that can be bought or sold at one time

Note
Value range is 0-252


Generated by PasDoc 0.16.0-snapshot.