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
| Parameter | Type |
|---|---|
id | string |
text | string |
prevPhraseId | string |
goodwillLevel | number |
Returns
MockPhrase
Methods
GetPhraseScript()
ts
GetPhraseScript(): MockPhraseScript;Returns
Script helper used to configure phrase conditions and actions.
Implementation of
ts
CPhrase.GetPhraseScriptcreate()
ts
static create(
id: string,
text: string,
prevPhraseId: string,
goodwillLevel: number): MockPhrase;Parameters
| Parameter | Type |
|---|---|
id | string |
text | string |
prevPhraseId | string |
goodwillLevel | number |
Returns
MockPhrase
mock()
ts
static mock(
id: string,
text: string,
prevPhraseId: string,
goodwillLevel: number): CPhrase;Parameters
| Parameter | Type |
|---|---|
id | string |
text | string |
prevPhraseId | string |
goodwillLevel | number |
Returns
CPhrase
Properties
goodwillLevel
ts
goodwillLevel: number;id
ts
id: string;prevPhraseId
ts
prevPhraseId: string;script
ts
script: MockPhraseScript;text
ts
text: string;