Class TShopTradeRecord
Unit
Declaration
type TShopTradeRecord = class(TInterfacedObject, IShopTradeRecord)
Description
Record of an item that can be bought or sold in a shop
Hierarchy
- TInterfacedObject
- TShopTradeRecord
Overview
Methods
![]() |
function _GetByteSize: Cardinal; |
![]() |
function _GetItemId: Cardinal; |
![]() |
procedure _SetItemId(ItemId: Cardinal); |
![]() |
function _GetBuyPrice: Cardinal; |
![]() |
procedure _SetBuyPrice(BuyPrice: Cardinal); |
![]() |
function _GetSellPrice: Cardinal; |
![]() |
procedure _SetSellPrice(SellPrice: Cardinal); |
![]() |
function _GetMaxAmount: Cardinal; |
![]() |
procedure _SetMaxAmount(MaxAmount: Cardinal); |
![]() |
procedure Serialize(Writer: TEoWriter); |
![]() |
class function Deserialize(Reader: TEoReader): TShopTradeRecord; |
Properties
![]() |
property ByteSize: Cardinal read _GetByteSize; |
![]() |
property ItemId: Cardinal read _GetItemId write _SetItemId; |
![]() |
property BuyPrice: Cardinal read _GetBuyPrice write _SetBuyPrice; |
![]() |
property SellPrice: Cardinal read _GetSellPrice write _SetSellPrice; |
![]() |
property MaxAmount: Cardinal read _GetMaxAmount write _SetMaxAmount; |
Description
Methods
![]() |
function _GetByteSize: Cardinal; |
|
This item has no description. | |
![]() |
function _GetItemId: Cardinal; |
|
This item has no description. | |
![]() |
procedure _SetItemId(ItemId: Cardinal); |
|
This item has no description. | |
![]() |
function _GetBuyPrice: Cardinal; |
|
This item has no description. | |
![]() |
procedure _SetBuyPrice(BuyPrice: Cardinal); |
|
This item has no description. | |
![]() |
function _GetSellPrice: Cardinal; |
|
This item has no description. | |
![]() |
procedure _SetSellPrice(SellPrice: Cardinal); |
|
This item has no description. | |
![]() |
function _GetMaxAmount: Cardinal; |
|
This item has no description. | |
![]() |
procedure _SetMaxAmount(MaxAmount: Cardinal); |
|
This item has no description. | |
![]() |
procedure Serialize(Writer: TEoWriter); |
|
Serializes this Parameters
| |
![]() |
class function Deserialize(Reader: TEoReader): TShopTradeRecord; |
|
Deserializes an instance of Parameters
ReturnsThe deserialized object | |
Properties
![]() |
property ByteSize: Cardinal read _GetByteSize; |
|
The size of the data that this object was deserialized from.
| |
![]() |
property ItemId: Cardinal read _GetItemId write _SetItemId; |
|
| |
![]() |
property BuyPrice: Cardinal read _GetBuyPrice write _SetBuyPrice; |
|
How much it costs to buy the item from the shop
| |
![]() |
property SellPrice: Cardinal read _GetSellPrice write _SetSellPrice; |
|
How much the shop will pay for the item
| |
![]() |
property MaxAmount: Cardinal read _GetMaxAmount write _SetMaxAmount; |
|
Max amount of the item that can be bought or sold at one time
| |
Generated by PasDoc 0.16.0-snapshot.
