camelot-unchained
Version:
Camelot Unchained Client Library
20 lines (18 loc) • 732 B
JavaScript
/**
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
;
var RestClientLegacy = require('./../RestClientLegacy');
// Control Game
function getControlGame() {
var includeControlPoints = arguments.length <= 0 || arguments[0] === undefined ? false : arguments[0];
return RestClientLegacy.getJSON('game/controlgame', false, { includeControlPoints: includeControlPoints });
}
exports.getControlGame = getControlGame;
// Spawn Points
function getSpawnPoints() {
return RestClientLegacy.getJSON('game/spawnpoints');
}
exports.getSpawnPoints = getSpawnPoints;