ggejs
Version:
A powerful JavaScript library for interacting with the server of Goodgame Empire: Four Kingdoms
15 lines (14 loc) • 396 B
JavaScript
class ConstructionSlot {
/** @type {number} */
objectId;
/**
* @param {Client} client
* @param {Array<number> | number} data
*/
constructor(client, data) {
this.objectId = Array.isArray(data) ? data[0] : data;
this.isFree = this.objectId === -1;
this.isLocked = this.objectId === -2;
}
}
module.exports = ConstructionSlot;