Skip to content

Class: MockEffector

Mock of a generic X-Ray engine effector class for jest/node.

Implements

  • effector

Constructors

Constructor

ts
new MockEffector(type: number, time: number): MockEffector;

Parameters

ParameterType
typenumber
timenumber

Returns

MockEffector

Methods

create()

ts
static create(type: number, time: number): MockEffector;

Parameters

ParameterType
typenumber
timenumber

Returns

MockEffector


mock()

ts
static mock(type: number, time: number): effector;

Parameters

ParameterType
typenumber
timenumber

Returns

effector

Properties

__name

ts
__name: string = "effector";

LuaBind instance constructor name.

Implementation of

ts
effector.__name

finish

ts
finish: Mock<UnknownFunction>;

Remove the effector from the actor camera stack.

Remarks

Removes by effector type, so sharing a type id with another active effector can remove the wrong effect.

Implementation of

ts
effector.finish

process

ts
process: Mock<(params: effector_params) => boolean>;

Update post-process parameters for the current frame.

Remarks

Override this in script. Mutate params for the current frame and return false to stop the effector.

Param

params

Mutable post-process parameters.

Returns

Whether the effector should continue running.

Implementation of

ts
effector.process

start

ts
start: Mock<UnknownFunction>;

Add the effector to the actor camera stack.

Remarks

Requires an active actor. This is intended for in-game actor post-processing, not menu/editor code.

Implementation of

ts
effector.start

time

ts
time: number;

type

ts
type: number;