Skip to content

FloatsApi beta ​

Interface of @v12-engine/client

ts
export interface FloatsApi

The floating text of a game, in code (client.floats): words put up over the world, the defs each kind of event floats, changed while the game plays, what is up

Members ​

clear ​

ts
clear(): void;

Takes every float down

def ​

ts
def(kind: string): FloatRule | null | undefined;

What a kind floats now (FloatKind): a def, a function of what is floated, null for none, nothing for a kind not in the set

kinds ​

ts
readonly kinds: readonly string[];

Every kind with a def or null, as the set is now

set ​

ts
set(kind: string, def: FloatRule | null | undefined): void;

Sets what a kind floats from now on: a def or a function of what is floated, null for nothing, undefined for the set's own again

show ​

ts
show(def: FloatDef | string, at: FloatAt): FloatHandle | undefined;

Puts up words over the world: a def (or just its words, 'Rally!'), over an entity or at a point (FloatAt). A handle to tell it more, nothing when it is not put up (no place, past the def's within)

shown ​

ts
readonly shown: readonly {
        text: string;
        color: string;
        kind: string;
        value?: number;
        pose: FloatPose;
    }[];

What is up: the words, colour, kind, number and pose of each