Skip to content

LiteFloatWorld beta ​

Class of @v12-engine/client/lite-views

ts
export declare class LiteFloatWorld

The plates and the texture of layers of the floats drawn in the world of one scene (the client's FloatWorld): made as they are first needed, a layer kept for the next float, gone with dispose

Members ​

constructor ​

ts
constructor(
    scene: object, renderer: Renderer, 
    view: () => ArrayLike<number>);

Constructs a new instance of the LiteFloatWorld class

counts ​

ts
get counts(): {
        textures: number;
        free: number;
        planes: number;
    };

How many layers there are, how many wait free, and how many floats were made: for tests and the bench

dispose ​

ts
dispose(): void;

Takes away its stream and its texture, and forgets every float

draw ​

ts
draw(words: LiteWorldWords, text: ScreenText, lit: boolean): void;

Its words drawn into its layer, as the overlay draws them

drawn ​

ts
drawn: number;

Words drawn and sent to the card so far: what the bench counts

due ​

ts
due(words: LiteWorldWords): boolean;

Whether a float's words are to be drawn again now: changed, and not drawn within the last tenth of a second

elapsed ​

ts
elapsed: number;

Seconds it has been running, for how often a float's words are drawn

frame ​

ts
frame(): void;

Once a frame before the floats are placed (FloatingText's): what was placed the frame before sent to the card (a frame behind: nothing tells it when the last is placed), and the camera's axes read

make ​

ts
make(): LiteWorldWords;

What a float has of its own, with no layer and hidden until it is drawn and placed

place ​

ts
place(words: LiteWorldWords, at: LiteWorldPlace): void;

Its plate stood where it is, sized and faded: its words' middle over its place, as the client's

release ​

ts
release(words: LiteWorldWords): void;

A float hidden and its layer given back for the next: the float went

scene ​

ts
readonly scene: object;

What FloatingText tells it by: a world of one scene (FloatingOptions.scene)

send ​

ts
send(): void;

Every float placed sent: what FloatingText.update placed