UNPKG

ggejs

Version:

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

20 lines (18 loc) 518 B
const Coordinate = require("./Coordinate"); class BuildingGround { /** * @param {BaseClient} client * @param {Array} data */ constructor(client, data) { /** @type {number} */ this.wodId = data[0]; /** @type {number} */ this.objectId = data[1]; /** @type {Coordinate} */ this.position = new Coordinate(data.slice(2, 4)); /** @type {number} */ this.isoRotation = data[4]; } } module.exports = BuildingGround;