Skip to content

Class: MockWorldProperty ​

Mock of the X-Ray engine logics world property.

Extends ​

Implements ​

  • world_property

Accessors ​

__name ​

Get Signature ​

ts
get __name(): string;
Returns ​

string

Implementation of ​

ts
world_property.__name

Inherited from ​

MockLuabindClass.__name


__name ​

Get Signature ​

ts
get static __name(): string;
Returns ​

string

Inherited from ​

MockLuabindClass.__name

Constructors ​

Constructor ​

ts
new MockWorldProperty(condition: number, value: boolean): MockWorldProperty;

Parameters ​

ParameterType
conditionnumber
valueboolean

Returns ​

MockWorldProperty

Overrides ​

MockLuabindClass.constructor

Methods ​

condition() ​

ts
condition(): number;

Returns ​

number

Condition identifier of current world property.

Implementation of ​

ts
world_property.condition

value() ​

ts
value(): boolean;

Returns ​

boolean

Value of current world property.

Implementation of ​

ts
world_property.value

create() ​

ts
static create(condition: number, value: boolean): MockWorldProperty;

Parameters ​

ParameterType
conditionnumber
valueboolean

Returns ​

MockWorldProperty

Overrides ​

MockLuabindClass.create


mock() ​

ts
static mock(condition: number, value: boolean): world_property;

Parameters ​

ParameterType
conditionnumber
valueboolean

Returns ​

world_property

Overrides ​

MockLuabindClass.mock