GrassBrush beta
Class of @v12-engine/editor
ts
export declare class GrassBrushThe grass brush of Play here: armed, a click on the game's map (and each step of a drag over it, every half a radius) sends the brush's act there (debug.foliage); Escape, a right click or another pick lets it go. What the game would do with the click (select, order) is not done while it is armed
Members
constructor
ts
constructor(host: GrassBrushHost);Constructs a new instance of the GrassBrush class
arm
ts
arm(picked: GrassBrushPicked | undefined): void;Arms a brush on the game played here, in the place of the one armed; or (none) lets go
at
ts
at(point: Vec2): boolean;Does the armed brush at a point of the game's ground: a debug command, through the simulation. Whether it was sent (a brush armed, a game played here that may use the debug tools)
picked
ts
picked: GrassBrushPicked | undefined;What is armed: none while nothing is