Class: world_property
Generic container object for GOAP world properties.
Source
C++ class world_property
Custom Constructor
world_property
Extends
Constructors
Constructor
ts
new world_property(id: number, enabled: boolean): world_property;Default constructor to describe a pair of identifier and value.
Parameters
| Parameter | Type | Description |
|---|---|---|
id | number | Identifier of unique world property. |
enabled | boolean | Value of property state. |
Returns
world_property
Overrides
Methods
condition()
ts
condition(): number;Returns
number
Condition identifier of current world property.
value()
ts
value(): boolean;Returns
boolean
Value of current world property.
Properties
__name
ts
readonly __name: string;LuaBind instance constructor name.
Inherited from
__name
ts
readonly static __name: string;LuaBind class constructor name.