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.