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
| Parameter | Type |
|---|---|
type | number |
time | number |
Returns
MockEffector
Methods
create()
ts
static create(type: number, time: number): MockEffector;Parameters
| Parameter | Type |
|---|---|
type | number |
time | number |
Returns
MockEffector
mock()
ts
static mock(type: number, time: number): effector;Parameters
| Parameter | Type |
|---|---|
type | number |
time | number |
Returns
effector
Properties
__name
ts
__name: string = "effector";LuaBind instance constructor name.
Implementation of
ts
effector.__namefinish
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.finishprocess
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.processstart
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.starttime
ts
time: number;type
ts
type: number;