Skip to content

EditorMenuContext beta ​

Interface of @v12-engine/editor

ts
export interface EditorMenuContext

What a menu's provider is told: what was clicked (nothing for the ground), its kind, and where on the ground

Members ​

ground ​

ts
ground: Vec2 | null;

Where on the ground the menu was opened, where it was on the ground

kind ​

ts
kind: string;

The kind of what was clicked (object, doodad, a game's own kind's id), or ground

target ​

ts
target: Named | null;

What was right-clicked, or null for the ground