Skip to content

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 ​

ParameterTypeDescription
idnumberIdentifier of unique world property.
enabledbooleanValue of property state.

Returns ​

world_property

Overrides ​

EngineBinding.constructor

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 ​

EngineBinding.__name


__name ​

ts
readonly static __name: string;

LuaBind class constructor name.

Inherited from ​

EngineBinding.__name