Class: MockPropertyEvaluator
Mock of the X-Ray engine AI property evaluator.
Extended by
Implements
property_evaluator
Constructors
Constructor
ts
new MockPropertyEvaluator(object?: game_object | null, name?: string): MockPropertyEvaluator;Parameters
| Parameter | Type | Default value |
|---|---|---|
object | game_object | null | null |
name | string | "" |
Returns
MockPropertyEvaluator
Methods
evaluate()
ts
evaluate(): boolean;Main evaluator lifecycle method. Called every time to get world property up-to-date state.
Returns
boolean
Current evaluator value.
Implementation of
ts
property_evaluator.evaluatesetup()
ts
setup(object: game_object, storage: property_storage): void;Handle setup of the evaluator and binding to a specific object.
Parameters
| Parameter | Type | Description |
|---|---|---|
object | game_object | Target client object to work with. |
storage | property_storage | Action instance storage with preconditions and state. |
Returns
void
Remarks
Called by the planner when the evaluator is registered. Call it manually only for standalone evaluator tests.
Implementation of
ts
property_evaluator.setupcreate()
ts
static create(object?: game_object | null, name?: string): MockPropertyEvaluator;Parameters
| Parameter | Type | Default value |
|---|---|---|
object | game_object | null | null |
name | string | "" |
Returns
MockPropertyEvaluator
mock()
ts
static mock(object?: game_object | null, name?: string): property_evaluator;Parameters
| Parameter | Type | Default value |
|---|---|---|
object | game_object | null | null |
name | string | "" |
Returns
property_evaluator
Properties
__name
ts
__name: string;LuaBind instance constructor name.
Implementation of
ts
property_evaluator.__nameobject
ts
object: game_object;Linked game object to work with.
Implementation of
ts
property_evaluator.objectstorage
ts
storage: property_storage;Container reference with state of action preconditions.
Implementation of
ts
property_evaluator.storage