Skip to content

Class: MockPhrase ​

Mock of the X-Ray engine dialog phrase.

Implements ​

  • CPhrase

Constructors ​

Constructor ​

ts
new MockPhrase(
   id: string, 
   text: string, 
   prevPhraseId: string, 
   goodwillLevel: number): MockPhrase;

Parameters ​

ParameterType
idstring
textstring
prevPhraseIdstring
goodwillLevelnumber

Returns ​

MockPhrase

Methods ​

GetPhraseScript() ​

ts
GetPhraseScript(): MockPhraseScript;

Returns ​

MockPhraseScript

Script helper used to configure phrase conditions and actions.

Implementation of ​

ts
CPhrase.GetPhraseScript

create() ​

ts
static create(
   id: string, 
   text: string, 
   prevPhraseId: string, 
   goodwillLevel: number): MockPhrase;

Parameters ​

ParameterType
idstring
textstring
prevPhraseIdstring
goodwillLevelnumber

Returns ​

MockPhrase


mock() ​

ts
static mock(
   id: string, 
   text: string, 
   prevPhraseId: string, 
   goodwillLevel: number): CPhrase;

Parameters ​

ParameterType
idstring
textstring
prevPhraseIdstring
goodwillLevelnumber

Returns ​

CPhrase

Properties ​

goodwillLevel ​

ts
goodwillLevel: number;

id ​

ts
id: string;

prevPhraseId ​

ts
prevPhraseId: string;

script ​

ts
script: MockPhraseScript;

text ​

ts
text: string;