Skip to content

ShownPing beta ​

Interface of @v12-engine/client

ts
export interface ShownPing

A ping as it is shown (client.pings.onPing, PingDraw): its def, who sent it, their name and the colour it is drawn in, where, and who it was for

Members ​

color ​

ts
color: string;

The CSS colour it is drawn in: the def's, else the sender's

def ​

ts
def: PingDef;

The kind's def, as it was when the ping was shown

name ​

ts
name: string;

The sender's name, as the chat line says it

player ​

ts
player: PlayerId;

Who sent it

to ​

ts
to: ChatAudience;

Who it was sent to: the sender's allies, everyone, or who watches alone

x ​

ts
x: number;

The spot pinged, in world units

z ​

ts
z: number;

The spot pinged, in world units