Skip to content

ViewPings beta ​

Interface of @v12-engine/client

ts
export interface ViewPings

The pings as the game's view says them (GameView.pings): the kinds a player puts on the map for the others, the wheel they are picked from, and the colours of the marks where units are sent

Members ​

kinds ​

ts
kinds?: readonly PingDef[];

The pings a player sends (indicators-plan P1): each kind a def of what it says, how it looks and sounds, who hears it and where it is on the wheel (PingDef). The engine lets only the kinds its rules name go (RuleSettings.talk.pings.kinds: pingKindsOf(pings)). presetPings() is a ready-made set; client.pings changes them while the game plays and sends one in code

orderColors ​

ts
orderColors?: Partial<Record<PingMode, Rgb>>;

Colours of the marks where the player sends units, by what they were sent to do

wheel ​

ts
wheel?: PingWheelLook;

The wheel of pings (indicators-plan P2, the ping.wheel action, Ctrl and the left button): its size, dead zone, labels, slots, what a release in the middle does, and how it is drawn (by the HUD, on the overlay canvas, or the game's own). client.pingWheel opens and aims it in code