Class: MockAnim
Mock of the X-Ray engine anim action enumeration.
Implements
anim
Constructors
Constructor
ts
new MockAnim(...args: unknown[]): MockAnim;Parameters
| Parameter | Type |
|---|---|
...args | unknown[] |
Returns
MockAnim
Methods
anim()
ts
anim(value: string): void;Set animation name.
Parameters
| Parameter | Type | Description |
|---|---|---|
value | string | Animation name. |
Returns
void
Implementation of
ts
anim.animcompleted()
ts
completed(): boolean;Returns
boolean
Whether the animation action is complete.
Implementation of
ts
anim.completedtype()
ts
type(state: TXR_mental_state): void;Set mental state.
Parameters
| Parameter | Type | Description |
|---|---|---|
state | TXR_mental_state | Mental state id. |
Returns
void
Implementation of
ts
anim.typecreate()
ts
static create(...args: unknown[]): MockAnim;Parameters
| Parameter | Type |
|---|---|
...args | unknown[] |
Returns
MockAnim
mock()
ts
static mock(...args: unknown[]): anim;Parameters
| Parameter | Type |
|---|---|
...args | unknown[] |
Returns
anim
Properties
__name
ts
__name: string = "anim";LuaBind instance constructor name.
Implementation of
ts
anim.__nameanimation
ts
animation: string | null = null;args
ts
args: unknown[];isCompleted
ts
isCompleted: boolean = false;mentalState
ts
mentalState: TXR_mental_state | null = null;attack
ts
readonly static attack: 7;Engine enum value for anim.attack.
capture_prepare
ts
readonly static capture_prepare: 1;Engine enum value for anim.capture_prepare.
danger
ts
readonly static danger: 0;Engine enum value for anim.danger.
eat
ts
readonly static eat: 4;Engine enum value for anim.eat.
free
ts
readonly static free: 1;Engine enum value for anim.free.
lie_idle
ts
readonly static lie_idle: 3;Engine enum value for anim.lie_idle.
look_around
ts
readonly static look_around: 8;Engine enum value for anim.look_around.
panic
ts
readonly static panic: 2;Engine enum value for anim.panic.
rest
ts
readonly static rest: 6;Engine enum value for anim.rest.
sit_idle
ts
readonly static sit_idle: 2;Engine enum value for anim.sit_idle.
sleep
ts
readonly static sleep: 5;Engine enum value for anim.sleep.
stand_idle
ts
readonly static stand_idle: 0;Engine enum value for anim.stand_idle.
turn
ts
readonly static turn: 9;Engine enum value for anim.turn.