Skip to content

LiteFxContext beta ​

Interface of @v12-engine/client

ts
export interface LiteFxContext

What the game's own effect or part is made with on this renderer (liteMake): FxContext

Members ​

anchor ​

ts
readonly anchor: Readonly<Place>;

Where it is, moved with it every frame

glow ​

ts
readonly glow: FxGlow;

The rods, rings and plates that glow (glow.ts): what beams and links are drawn with

groundAt ​

ts
groundAt(x: number, z: number): number;

How high the ground is at a place

on ​

ts
readonly on?: number;

The entity it is on, if it is

params ​

ts
readonly params: FxParams;

Its knobs, as they are now

play ​

ts
play(effect: string | FxDef, options?: FxPlay): FxHandle;

Plays another effect, here or where it says: stopped with this one

random ​

ts
random(): number;

A number from 0 to 1, the same on every screen for the same seed

renderer ​

ts
readonly renderer: Renderer;

The renderer it draws with

rotation ​

ts
readonly rotation: number;

Which way it is turned, in radians

scale ​

ts
readonly scale: number;

How much bigger it is played (FxPlay.scale)

toward ​

ts
toward(): Readonly<Place> | undefined;

Where its other end is this frame, for one played between two (FxPlay.toward)

visible ​

ts
readonly visible: boolean;

Whether the player sees it now (not under the fog, its entity drawn)