Skip to content

LooksHost beta ​

Interface of @v12-engine/client

ts
export interface LooksHost

What the client's looks reach of it: loading models, and drawing a type's entities again

Members ​

load ​

ts
load(models: ModelDef[]): Promise<void>;

Settles once these models are loaded, or failed to (and were said)

modelsOf ​

ts
modelsOf(look: UnitLook): ModelDef[];

The models a look is drawn with: its own, its other looks, what it shoots

redraw ​

ts
redraw(type: string): void;

Draws every entity of a type again, with what its type looks like now