LiteFloatWorld beta
Class of @v12-engine/client/lite-views
export declare class LiteFloatWorldThe 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
constructor(
scene: object, renderer: Renderer,
view: () => ArrayLike<number>);Constructs a new instance of the LiteFloatWorld class
counts
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
dispose(): void;Takes away its stream and its texture, and forgets every float
draw
draw(words: LiteWorldWords, text: ScreenText, lit: boolean): void;Its words drawn into its layer, as the overlay draws them
drawn
drawn: number;Words drawn and sent to the card so far: what the bench counts
due
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
elapsed: number;Seconds it has been running, for how often a float's words are drawn
frame
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
make(): LiteWorldWords;What a float has of its own, with no layer and hidden until it is drawn and placed
place
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
release(words: LiteWorldWords): void;A float hidden and its layer given back for the next: the float went
scene
readonly scene: object;What FloatingText tells it by: a world of one scene (FloatingOptions.scene)
send
send(): void;Every float placed sent: what FloatingText.update placed