1
0
mirror of https://github.com/sehugg/8bitworkshop.git synced 2024-05-28 08:41:30 +00:00
8bitworkshop/gen/platform/script.js

39 lines
876 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const emu_1 = require("../common/emu");
const notebook_1 = require("../common/script/ui/notebook");
class ScriptingPlatform {
constructor(mainElement) {
this.mainElement = mainElement;
this.notebook = new notebook_1.Notebook(document, mainElement);
}
start() {
}
reset() {
}
pause() {
}
resume() {
}
loadROM(title, run) {
this.notebook.updateCells(run.cells);
// TODO: save state file
}
isRunning() {
return true;
}
isDebugging() {
return false;
}
getToolForFilename(fn) {
return "js";
}
getDefaultExtension() {
return ".js";
}
getPresets() {
return [];
}
}
emu_1.PLATFORMS['script'] = ScriptingPlatform;
//# sourceMappingURL=script.js.map