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
| Parameter | Type | Description |
|---|---|---|
value | boolean | Constant 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
setup()
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.
Inherited from
Properties
__name
ts
readonly __name: string;LuaBind instance constructor name.
Inherited from
object
ts
readonly object: game_object;Linked game object to work with.
Inherited from
storage
ts
readonly storage: property_storage;Container reference with state of action preconditions.
Inherited from
__name
ts
readonly static __name: string;LuaBind class constructor name.