Class: MockEntityAction
Mock of the X-Ray engine entity_action class.
Implements
entity_action
Constructors
Constructor
new MockEntityAction(...args: unknown[]): MockEntityAction;Parameters
| Parameter | Type |
|---|---|
...args | unknown[] |
Returns
MockEntityAction
Methods
create()
static create(...args: unknown[]): MockEntityAction;Parameters
| Parameter | Type |
|---|---|
...args | unknown[] |
Returns
MockEntityAction
mock()
static mock(...args: unknown[]): entity_action;Parameters
| Parameter | Type |
|---|---|
...args | unknown[] |
Returns
entity_action
Properties
__name
__name: string = "entity_action";LuaBind instance constructor name.
Implementation of
entity_action.__nameall
all: Mock<() => boolean>;Check whether all action parts are complete.
Returns
Whether the action is complete.
Implementation of
entity_action.allanim
anim: Mock<() => boolean>;Check whether the animation part is complete.
Returns
Whether animation is complete.
Implementation of
entity_action.animargs
args: unknown[];completed
completed: Mock<() => boolean>;Check whether the whole action is complete.
Returns
Whether all required parts are complete.
Implementation of
entity_action.completedlook
look: Mock<() => boolean>;Check whether the look part is complete.
Returns
Whether look handling is complete.
Implementation of
entity_action.lookmove
move: Mock<() => boolean>;Check whether the movement part is complete.
Returns
Whether movement is complete.
Implementation of
entity_action.moveobject
object: Mock<() => boolean>;Check whether the object interaction part is complete.
Returns
Whether object interaction is complete.
Implementation of
entity_action.objectparticle
particle: Mock<() => boolean>;Check whether the particle part is complete.
Returns
Whether particle playback is complete.
Implementation of
entity_action.particleset_action
set_action: Mock<{
(move: move): void;
(look: look): void;
(anim: anim): void;
(sound: sound): void;
(particle: particle): void;
(objectAction: XR_object): void;
(cond: cond): void;
(act: act): void;
}>;Set the movement part of this action.
Param
move
Movement action.
Implementation of
entity_action.set_actionsound
sound: Mock<() => boolean>;Check whether the sound part is complete.
Returns
Whether sound playback is complete.
Implementation of
entity_action.soundtime
time: Mock<() => boolean>;Check whether the action time condition has elapsed.
Returns
Whether the time condition is complete.
Implementation of
entity_action.time