FloatsApi beta
Interface of @v12-engine/client
export interface FloatsApiThe 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
clear(): void;Takes every float down
def
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
readonly kinds: readonly string[];Every kind with a def or null, as the set is now
set
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
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
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