Skip to content

Class: property_evaluator_const

Class implementation of world properties evaluators. Static handler to return pre-defined value for specific world property id.

Source

C++ class property_evaluator_const : property_evaluator

Custom Constructor

property_evaluator_const

Extends

Constructors

Constructor

ts
new property_evaluator_const(value: boolean): property_evaluator_const;

Parameters

ParameterTypeDescription
valuebooleanConstant value for evaluation.

Returns

property_evaluator_const

Overrides

property_evaluator.constructor

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.

Inherited from

property_evaluator.evaluate


setup()

ts
setup(object: game_object, storage: property_storage): void;

Handle setup of the evaluator and binding to a specific object.

Parameters

ParameterTypeDescription
objectgame_objectTarget client object to work with.
storageproperty_storageAction 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.

Inherited from

property_evaluator.setup

Properties

__name

ts
readonly __name: string;

LuaBind instance constructor name.

Inherited from

property_evaluator.__name


object

ts
readonly object: game_object;

Linked game object to work with.

Inherited from

property_evaluator.object


storage

ts
readonly storage: property_storage;

Container reference with state of action preconditions.

Inherited from

property_evaluator.storage


__name

ts
readonly static __name: string;

LuaBind class constructor name.

Inherited from

property_evaluator.__name