mirror of
https://github.com/simon987/Much-Assembly-Required.git
synced 2025-12-16 08:09:07 +00:00
Added debug command to save the game
This commit is contained in:
@@ -253,6 +253,8 @@ var WorldIndicator = (function (_super) {
|
||||
};
|
||||
return WorldIndicator;
|
||||
}(DebugMessage));
|
||||
{
|
||||
}
|
||||
var RENDERER_WIDTH = document.getElementById("game").clientWidth * window.devicePixelRatio;
|
||||
var RENDERER_HEIGHT = (window.innerHeight / 1.40) * window.devicePixelRatio;
|
||||
var DEBUG = true;
|
||||
@@ -437,6 +439,9 @@ var Debug = (function () {
|
||||
Debug.setEnergy = function (objectId, amount) {
|
||||
mar.client.sendDebugCommand({ t: "debug", command: "setEnergy", objectId: objectId, amount: amount });
|
||||
};
|
||||
Debug.saveGame = function () {
|
||||
mar.client.sendDebugCommand({t: "debug", command: "saveGame"});
|
||||
};
|
||||
return Debug;
|
||||
}());
|
||||
DEBUG = false;
|
||||
|
||||
Reference in New Issue
Block a user