mirror of
https://github.com/simon987/Much-Assembly-Required.git
synced 2025-12-18 09:09:05 +00:00
I broke everything pt. 1: Moved helditem into CubotInventory, added debug commands for CubotInventory, Added vault complete GameEvent, moved CPU to Cubot, renamed CpuHardware to HardwareModule, moved HardwareModule to Cubot & added HardwareHost interface, removed getParent() in ControllableUnit, moved items to the Item class, started moving tiles to Tile classes, renamed Programmable to MessageReceiver
This commit is contained in:
16
Server/src/main/resources/static/js/mar.js
vendored
16
Server/src/main/resources/static/js/mar.js
vendored
@@ -253,8 +253,6 @@ 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;
|
||||
@@ -442,6 +440,20 @@ var Debug = (function () {
|
||||
Debug.saveGame = function () {
|
||||
mar.client.sendDebugCommand({t: "debug", command: "saveGame"});
|
||||
};
|
||||
Debug.popItem = function (objectId) {
|
||||
mar.client.sendDebugCommand({t: "debug", command: "popItem", objectId: objectId});
|
||||
};
|
||||
Debug.putItem = function (objectId, item) {
|
||||
mar.client.sendDebugCommand({t: "debug", command: "putItem", objectId: objectId, item: item});
|
||||
};
|
||||
Debug.setInventoryPosition = function (objectId, position) {
|
||||
mar.client.sendDebugCommand({
|
||||
t: "debug",
|
||||
command: "setInventoryPosition",
|
||||
objectId: objectId,
|
||||
position: position
|
||||
});
|
||||
};
|
||||
return Debug;
|
||||
}());
|
||||
DEBUG = false;
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
<link rel="stylesheet" href="css/bootstrap-reboot.min.css">
|
||||
<link rel="stylesheet" href="css/bootstrap4-neon-glow.min.css">
|
||||
<link rel="stylesheet" href="css/mar.css">
|
||||
<link rel="stylesheet" href="css/console.css">
|
||||
|
||||
<title>$title</title>
|
||||
</head>
|
||||
Reference in New Issue
Block a user