MinimapLayer beta
Interface of @v12-engine/client
ts
export interface MinimapLayerA layer of a game's own on the minimap (MinimapLook.layers, client.hud.addMinimapLayer): its dots, its zones, its shapes, drawn in its place among the minimap's own without a change to them. In order, each where it says
Members
at
ts
at?: 'ground' | 'units' | 'over';Where it is drawn: ground on the ground, under the dots and the fog (zones, lanes, a road); units with the dots, under the fog (what the fog hides as it hides units); over over the fog (what is known whatever is seen: an objective, a capture point). over when left out. Those over the fog are drawn every frame; those under it as often as the dots (MinimapLook.dotsEvery), and when the fog changes
draw
ts
draw: (context: CanvasRenderingContext2D, frame: MinimapFrame) => void;Draws it; the context's state is put back after
id
ts
id: string;Its name, to find it again or take it away