Skip to content

Class: MockEffectorParams

Mock of the X-Ray engine effector_params class for jest/node.

Defaults match the neutral post-process state described in the engine typings: no blur, gray, duality or noise intensity.

Implements

  • effector_params

Constructors

Constructor

ts
new MockEffectorParams(): MockEffectorParams;

Returns

MockEffectorParams

Methods

create()

ts
static create(): MockEffectorParams;

Returns

MockEffectorParams


mock()

ts
static mock(): effector_params;

Returns

effector_params

Properties

__name

ts
readonly __name: string = "effector_params";

LuaBind instance constructor name.

Implementation of

ts
effector_params.__name

assign

ts
assign: MockedFunction<(params: effector_params) => void>;

Copy all post-process values from another params object.

Remarks

Copies the current values. Later changes to params are not linked back to this object.

Param

params

Source values.

Implementation of

ts
effector_params.assign

blur

ts
blur: number = 0;

Blur amount.

Implementation of

ts
effector_params.blur

color_add

ts
color_add: color;

Additive color applied over the frame.

Implementation of

ts
effector_params.color_add

color_base

ts
color_base: color;

Base color tint.

Implementation of

ts
effector_params.color_base

color_gray

ts
color_gray: color;

Grayscale color tint.

Implementation of

ts
effector_params.color_gray

dual

ts
dual: duality;

Double-vision settings.

Implementation of

ts
effector_params.dual

gray

ts
gray: number = 0;

Grayscale amount.

Implementation of

ts
effector_params.gray

noise

ts
noise: noise;

Noise settings.

Implementation of

ts
effector_params.noise