mirror of
https://github.com/sehugg/8bitworkshop.git
synced 2025-01-10 01:29:42 +00:00
39 lines
876 B
JavaScript
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
|