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.__nameInherited from
__name
Get Signature
ts
get static __name(): string;Returns
string
Inherited from
Constructors
Constructor
ts
new MockPropertyStorage(): MockPropertyStorage;Returns
MockPropertyStorage
Inherited from
Methods
property()
ts
property(id: number): boolean;Get property evaluator value by id.
Parameters
| Parameter | Type | Description |
|---|---|---|
id | number | Unique 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.propertyset_property()
ts
set_property(id: number, value: boolean): void;Set property value in the storage.
Parameters
| Parameter | Type | Description |
|---|---|---|
id | number | Unique identifier of the world property. |
value | boolean | Value for provided id. |
Returns
void
Implementation of
ts
property_storage.set_propertycreate()
ts
static create(): MockPropertyStorage;Returns
MockPropertyStorage
Overrides
mock()
ts
static mock(): property_storage;Returns
property_storage
Overrides
Properties
values
ts
readonly values: Map<number, boolean>;