@open-screeps/is-room-visible
v1.0.0
Published
Check whether a room is currently visible
Downloads
5
Readme
is-room-visible
Check whether a room is currently visible
Install
$ npm install @open-screeps/is-room-visible
Usage
import { isRoomVisible } from '@open-screeps/is-room-visible';
const observerTargets = Object.keys(Memory.rooms).filter(r => isRoomVisible(r));