UNPKG

ggejs

Version:

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

13 lines (11 loc) 269 B
class Coordinate { /** @param {Array<number>} data */ constructor(data) { this.X = data[0]; this.Y = data[1]; } toString(splitter = '/') { return `${this.X}${splitter}${this.Y}`; } } module.exports = Coordinate;