Function screeps::console::add_visual
source · pub fn add_visual(target: Option<&JsString>, visual: &JsValue)Expand description
Add a visual, in json format, or multiple visuals separated by \n.
Each line must be:
- A serialized
Visual, applying to a given room, if the target is the name of a room - A serialized
Visual, which will be shown in all rooms, if target isNone - A serialized
MapVisualShape, if the target is “map”