Skip to content

Class: MockPropertyStorage ​

Mock of the X-Ray engine AI property storage (properties + actions for the graph).

Extends ​

Implements ​

  • property_storage

Accessors ​

__name ​

Get Signature ​

ts
get __name(): string;
Returns ​

string

Implementation of ​

ts
property_storage.__name

Inherited from ​

MockLuabindClass.__name


__name ​

Get Signature ​

ts
get static __name(): string;
Returns ​

string

Inherited from ​

MockLuabindClass.__name

Constructors ​

Constructor ​

ts
new MockPropertyStorage(): MockPropertyStorage;

Returns ​

MockPropertyStorage

Inherited from ​

MockLuabindClass.constructor

Methods ​

property() ​

ts
property(id: number): boolean;

Get property evaluator value by id.

Parameters ​

ParameterTypeDescription
idnumberUnique identifier of the world property.

Returns ​

boolean

Current value for provided id.

Throws ​

If property is not declared in storage.

Implementation of ​

ts
property_storage.property

set_property() ​

ts
set_property(id: number, value: boolean): void;

Set property value in the storage.

Parameters ​

ParameterTypeDescription
idnumberUnique identifier of the world property.
valuebooleanValue for provided id.

Returns ​

void

Implementation of ​

ts
property_storage.set_property

create() ​

ts
static create(): MockPropertyStorage;

Returns ​

MockPropertyStorage

Overrides ​

MockLuabindClass.create


mock() ​

ts
static mock(): property_storage;

Returns ​

property_storage

Overrides ​

MockLuabindClass.mock

Properties ​

values ​

ts
readonly values: Map<number, boolean>;