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.