Class TTalkRecord

Unit

Declaration

type TTalkRecord = class(TInterfacedObject, ITalkRecord)

Description

Record of Talk data in an Endless Talk File

Hierarchy

Overview

Methods

Public function GetByteSize: Cardinal;
Public function GetNpcId: Cardinal;
Public procedure SetNpcId(NpcId: Cardinal);
Public function GetRate: Cardinal;
Public procedure SetRate(Rate: Cardinal);
Public function GetMessages: TArray<ITalkMessageRecord>;
Public procedure SetMessages(Messages: TArray<ITalkMessageRecord>);
Public procedure Serialize(Writer: TEoWriter);
Public class function Deserialize(Reader: TEoReader): TTalkRecord;

Properties

Public property ByteSize: Cardinal read GetByteSize;
Public property NpcId: Cardinal read GetNpcId write SetNpcId;
Public property Rate: Cardinal read GetRate write SetRate;
Public property Messages: TArray<ITalkMessageRecord> read GetMessages write SetMessages;

Description

Methods

Public function GetByteSize: Cardinal;

This item has no description.

Public function GetNpcId: Cardinal;

This item has no description.

Public procedure SetNpcId(NpcId: 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 function GetMessages: TArray<ITalkMessageRecord>;

This item has no description.

Public procedure SetMessages(Messages: TArray<ITalkMessageRecord>);

This item has no description.

Public procedure Serialize(Writer: TEoWriter);

Serializes this TTalkRecord object to the provided TEoWriter.

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

Deserializes an instance of TTalkRecord 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 NpcId: Cardinal read GetNpcId write SetNpcId;

ID of the NPC that will talk

Note
Value range is 0-64008

Public property Rate: Cardinal read GetRate write SetRate;

Chance that the NPC will talk (0-100)

Note
Value range is 0-252

Public property Messages: TArray<ITalkMessageRecord> read GetMessages write SetMessages;

Note
Length must be 252 or less


Generated by PasDoc 0.16.0-snapshot.