ggejs
Version:
A powerful Node.js module for interacting with the server of Goodgame Empire & Goodgame Empire: Four Kingdoms
15 lines (14 loc) • 400 B
JavaScript
class ConstructionSlot {
/** @type {number} */
objectId;
/**
* @param {BaseClient} 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;