UNPKG

ggejs

Version:

A powerful JavaScript library for interacting with the server of Goodgame Empire: Four Kingdoms

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