ggejs
Version:
A powerful JavaScript library for interacting with the server of Goodgame Empire: Four Kingdoms
20 lines • 656 B
JavaScript
module.exports.name = "gaa";
/**
* Requests all Mapobjects for the area between topX and bottomY
* @param {Socket} socket
* @param {number} kingdomId
* @param {Coordinate} bottomLeftCorner
* @param {Coordinate} topRightCorner
*/
module.exports.execute = function (socket, kingdomId, bottomLeftCorner, topRightCorner) {
const C2SGetAreaVO = {
getCmdId: "gaa", params: {
KID: kingdomId,
AX1: bottomLeftCorner.X,
AY1: bottomLeftCorner.Y,
AX2: topRightCorner.X,
AY2: topRightCorner.Y,
},
}
require('../data').sendCommandVO(socket, C2SGetAreaVO);
}