Class TThreeItem

Unit

Declaration

type TThreeItem = class(TInterfacedObject, IThreeItem)

Description

An item reference with a 3-byte amount. Used for shops, lockers, and various item transfers.

Hierarchy

Overview

Methods

Public function GetByteSize: Cardinal;
Public function GetId: Cardinal;
Public procedure SetId(Id: Cardinal);
Public function GetAmount: Cardinal;
Public procedure SetAmount(Amount: Cardinal);
Public procedure Serialize(Writer: TEoWriter);
Public class function Deserialize(Reader: TEoReader): TThreeItem;

Properties

Public property ByteSize: Cardinal read GetByteSize;
Public property Id: Cardinal read GetId write SetId;
Public property Amount: Cardinal read GetAmount write SetAmount;

Description

Methods

Public function GetByteSize: Cardinal;

This item has no description.

Public function GetId: Cardinal;

This item has no description.

Public procedure SetId(Id: Cardinal);

This item has no description.

Public function GetAmount: Cardinal;

This item has no description.

Public procedure SetAmount(Amount: Cardinal);

This item has no description.

Public procedure Serialize(Writer: TEoWriter);

Serializes this TThreeItem object to the provided TEoWriter.

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

Deserializes an instance of TThreeItem 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 Id: Cardinal read GetId write SetId;

Note
Value range is 0-64008

Public property Amount: Cardinal read GetAmount write SetAmount;

Note
Value range is 0-16194276


Generated by PasDoc 0.16.0-snapshot.