Module screeps::console

source ·
Expand description

Utility functions for visuals that the game API exposes on the console object.

Functions

  • Add a visual, in json format, or multiple visuals separated by \n. Each line must be:
  • Clear all of the set visuals for the current tick, either for a given room, None for visuals applied for all rooms, or “map” for map visuals.
  • Get the visuals applied to a given target so far in the current tick separated by \n, with the taget being visuals applied to a given room, None for visuals applied for all rooms, or “map” for map visuals.
  • Get the size of the visuals applied for the current tick, either for a given room, None for visuals applied for all rooms, or “map” for map visuals.