ClientLooks beta
Class of @v12-engine/client
export declare class ClientLooksWhat unit types look like, while the game runs (client.looks, S20): the view's (GameView.units.looks) to begin with, a type's changed in code (set): a hero in another armour, a building as it is upgraded, a skin picked in the menu. The client's own copy: the view, and other clients of it, are as they were
Members
constructor
constructor(looks: UnitLooks, host: LooksHost);Constructs a new instance of the ClientLooks class
get
get(type: string): UnitLook | undefined;What a type looks like now: nothing for one drawn with the client's own parts
set
set(type: string, look: UnitLook | undefined): Promise<void>;Changes what a type looks like: its entities are drawn with the new look once its models are loaded (the old one until then), and what comes later of that type too. undefined takes the look away: the client's own parts. Settles once it is drawn, or once another change of that type asked after it took its place
types
types(): string[];The types that have a look