Sha256: cacd3b88fcd275e8db677be72732ac6286e963990d5a9c3a0dddaf774a77cbcf
Contents?: true
Size: 373 Bytes
Versions: 44
Compression:
Stored size: 373 Bytes
Contents
const CONTROLLER_REGISTRY = {}; export default class MapControllerRegistry { static getController(mapId) { return CONTROLLER_REGISTRY[mapId]; } static setController(mapId, map) { CONTROLLER_REGISTRY[mapId] = map; } static findByMap(map) { return Object.values(CONTROLLER_REGISTRY).find((ctrl) => { return ctrl.getMap() === map; }); } }
Version data entries
44 entries across 44 versions & 1 rubygems