Class TDropRecord

Unit

Declaration

type TDropRecord = class(TInterfacedObject, IDropRecord)

Description

Record of an item an NPC can drop when killed

Hierarchy

Overview

Methods

Public function GetByteSize: Cardinal;
Public function GetItemId: Cardinal;
Public procedure SetItemId(ItemId: Cardinal);
Public function GetMinAmount: Cardinal;
Public procedure SetMinAmount(MinAmount: Cardinal);
Public function GetMaxAmount: Cardinal;
Public procedure SetMaxAmount(MaxAmount: Cardinal);
Public function GetRate: Cardinal;
Public procedure SetRate(Rate: Cardinal);
Public procedure Serialize(Writer: TEoWriter);
Public class function Deserialize(Reader: TEoReader): TDropRecord;

Properties

Public property ByteSize: Cardinal read GetByteSize;
Public property ItemId: Cardinal read GetItemId write SetItemId;
Public property MinAmount: Cardinal read GetMinAmount write SetMinAmount;
Public property MaxAmount: Cardinal read GetMaxAmount write SetMaxAmount;
Public property Rate: Cardinal read GetRate write SetRate;

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

This item has no description.

Public procedure SetMinAmount(MinAmount: 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 function GetRate: Cardinal;

This item has no description.

Public procedure SetRate(Rate: Cardinal);

This item has no description.

Public procedure Serialize(Writer: TEoWriter);

Serializes this TDropRecord object to the provided TEoWriter.

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

Deserializes an instance of TDropRecord 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 MinAmount: Cardinal read GetMinAmount write SetMinAmount;

Note
Value range is 0-16194276

Public property MaxAmount: Cardinal read GetMaxAmount write SetMaxAmount;

Note
Value range is 0-16194276

Public property Rate: Cardinal read GetRate write SetRate;

Chance (x in 64,000) of the item being dropped

Note
Value range is 0-64008


Generated by PasDoc 0.16.0-snapshot.