ggejs
Version:
A powerful Node.js module for interacting with the server of Goodgame Empire & Goodgame Empire: Four Kingdoms
20 lines (17 loc) • 396 B
JavaScript
const Coordinate = require("./Coordinate");
class CastlePosition {
/** @type {number} */
kingdomId;
/** @type {number} */
objectId;
/** @type {number} */
xPos;
/** @type {number} */
yPos;
/** @type {number} */
areaType;
get position(){
return new Coordinate([this.xPos, this.yPos])
}
}
module.exports = CastlePosition;