UNPKG

ggejs

Version:

A powerful Node.js module for interacting with the server of Goodgame Empire & Goodgame Empire: Four Kingdoms

16 lines (13 loc) 423 B
const WorldMap = require('./WorldMap') class WorldMapSector extends WorldMap { constructor(client, kingdomId, data) { super(client, kingdomId); this.mapObjects = data; } /** @param {WorldMapSector} sectors */ combine(...sectors) { for (const sector of sectors) this.mapObjects.concat(sector.mapObjects); return this; } } module.exports = WorldMapSector;