webamp/experiments/modern/src/runtime/System.js
jberg 06f3a473ed Add runtime version and remove version check hacks (#818)
* add runtime version and remove version check hacks

* move jump logic into a shared function
2019-07-20 16:39:19 -07:00

38 lines
798 B
JavaScript

const Group = require("./Group");
const MakiObject = require("./MakiObject");
class System extends MakiObject {
/**
* getClassName()
*
* Returns the class name for the object.
* @ret The class name.
*/
static getClassName() {
return "System";
}
async js_start() {
// Remove this await when we can run the VM synchronously.
// See GitHub issue #814
await this.js_trigger("onScriptLoaded");
}
getScriptGroup() {
return new Group();
}
getRuntimeVersion() {
return "5.666";
}
getToken(str, separator, tokennum) {
return "Some Token String";
}
getParam() {
return "Some String";
}
messageBox(message, msgtitle, flag, notanymoreId) {
console.log({ message, msgtitle, flag, notanymoreId });
}
}
module.exports = System;