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));