Class TShopRecord

Unit

Declaration

type TShopRecord = class(TInterfacedObject, IShopRecord)

Description

Record of Shop data in an Endless Shop File

Hierarchy

Overview

Methods

Public function GetByteSize: Cardinal;
Public function GetBehaviorId: Cardinal;
Public procedure SetBehaviorId(BehaviorId: Cardinal);
Public function GetName: string;
Public procedure SetName(Name: string);
Public function GetMinLevel: Cardinal;
Public procedure SetMinLevel(MinLevel: Cardinal);
Public function GetMaxLevel: Cardinal;
Public procedure SetMaxLevel(MaxLevel: Cardinal);
Public function GetClassRequirement: Cardinal;
Public procedure SetClassRequirement(ClassRequirement: Cardinal);
Public function GetTrades: TArray<IShopTradeRecord>;
Public procedure SetTrades(Trades: TArray<IShopTradeRecord>);
Public function GetCrafts: TArray<IShopCraftRecord>;
Public procedure SetCrafts(Crafts: TArray<IShopCraftRecord>);
Public procedure Serialize(Writer: TEoWriter);
Public class function Deserialize(Reader: TEoReader): TShopRecord;

Properties

Public property ByteSize: Cardinal read GetByteSize;
Public property BehaviorId: Cardinal read GetBehaviorId write SetBehaviorId;
Public property Name: string read GetName write SetName;
Public property MinLevel: Cardinal read GetMinLevel write SetMinLevel;
Public property MaxLevel: Cardinal read GetMaxLevel write SetMaxLevel;
Public property ClassRequirement: Cardinal read GetClassRequirement write SetClassRequirement;
Public property Trades: TArray<IShopTradeRecord> read GetTrades write SetTrades;
Public property Crafts: TArray<IShopCraftRecord> read GetCrafts write SetCrafts;

Description

Methods

Public function GetByteSize: Cardinal;

This item has no description.

Public function GetBehaviorId: Cardinal;

This item has no description.

Public procedure SetBehaviorId(BehaviorId: Cardinal);

This item has no description.

Public function GetName: string;

This item has no description.

Public procedure SetName(Name: string);

This item has no description.

Public function GetMinLevel: Cardinal;

This item has no description.

Public procedure SetMinLevel(MinLevel: Cardinal);

This item has no description.

Public function GetMaxLevel: Cardinal;

This item has no description.

Public procedure SetMaxLevel(MaxLevel: Cardinal);

This item has no description.

Public function GetClassRequirement: Cardinal;

This item has no description.

Public procedure SetClassRequirement(ClassRequirement: Cardinal);

This item has no description.

Public function GetTrades: TArray<IShopTradeRecord>;

This item has no description.

Public procedure SetTrades(Trades: TArray<IShopTradeRecord>);

This item has no description.

Public function GetCrafts: TArray<IShopCraftRecord>;

This item has no description.

Public procedure SetCrafts(Crafts: TArray<IShopCraftRecord>);

This item has no description.

Public procedure Serialize(Writer: TEoWriter);

Serializes this TShopRecord object to the provided TEoWriter.

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

Deserializes an instance of TShopRecord 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 BehaviorId: Cardinal read GetBehaviorId write SetBehaviorId;

Note
Value range is 0-64008

Public property Name: string read GetName write SetName;

Note
Length must be 252 or less

Public property MinLevel: Cardinal read GetMinLevel write SetMinLevel;

Minimum level required to use this shop

Note
Value range is 0-252

Public property MaxLevel: Cardinal read GetMaxLevel write SetMaxLevel;

Maximum level allowed to use this shop

Note
Value range is 0-252

Public property ClassRequirement: Cardinal read GetClassRequirement write SetClassRequirement;

Class required to use this shop

Note
Value range is 0-252

Public property Trades: TArray<IShopTradeRecord> read GetTrades write SetTrades;

Note
Length must be 64008 or less

Public property Crafts: TArray<IShopCraftRecord> read GetCrafts write SetCrafts;

Note
Length must be 252 or less


Generated by PasDoc 0.16.0-snapshot.