Class in reactor_main.js

Main

20 functions in 5 groups · hide internal

The Database: everything Core loads at boot.

Quick Reference

Setup & Creation 4

constructor() Sets up a new instance.
loadMainScripts() Loads the main scripts.
makeErrorHtml() Makes the error html.
initEffekseerRuntime() Initializes the effekseer runtime.

Checks (True / False) 1

isPathRandomized() Whether it is path randomized.

Actions 2

run() Run.
showLoadingSpinner() Shows the loading spinner.

Events, Commands & Input 6

onScriptLoad() Called when script load happens.
onScriptError() Called when script error happens.
onWindowLoad() Called when window load happens.
onWindowError() Called when window error happens.
onEffekseerLoad() Called when effekseer load happens.
onEffekseerError() Called when effekseer error happens.

Other 7

askScreenRefresh() The screen's refresh a second, where the system will say: under Windows, the highest of its video controllers…
waitForWebGL() WebGL that is there in a moment: a graphics driver that refuses the GPU process for a second (it ran out of G…
eraseLoadingSpinner() Erase loading spinner.
testXhr() Test xhr.
hookNwjsClose() Hook nwjs close.
afterPluginScripts() Once every plugin script just added has loaded or failed, as the load event would have waited.
printError() Print error.

Setup & Creation

constructor

constructor source
new Main()

Sets up a new instance.

loadMainScripts

method source
Main.prototype.loadMainScripts()

Loads the main scripts.

makeErrorHtml

method source
Main.prototype.makeErrorHtml(name, message)

Makes the error html.

initEffekseerRuntime

method source
Main.prototype.initEffekseerRuntime()

Initializes the effekseer runtime.

Checks (True / False)

isPathRandomized

method source
Main.prototype.isPathRandomized()

Whether it is path randomized.

Actions

run

method source
Main.prototype.run()

Run.

showLoadingSpinner

method source
Main.prototype.showLoadingSpinner()

Shows the loading spinner.

Events, Commands & Input

onScriptLoad

method source
Main.prototype.onScriptLoad()

Called when script load happens.

onScriptError

method source
Main.prototype.onScriptError(e)

Called when script error happens.

onWindowLoad

method source
Main.prototype.onWindowLoad()

Called when window load happens.

onWindowError

method source
Main.prototype.onWindowError(event)

Called when window error happens.

onEffekseerLoad

method source
Main.prototype.onEffekseerLoad()

Called when effekseer load happens.

onEffekseerError

method source
Main.prototype.onEffekseerError()

Called when effekseer error happens.

Other

askScreenRefresh

method source
Main.prototype.askScreenRefresh()

The screen's refresh a second, where the system will say: under Windows, the highest of its video controllers (one question to PowerShell, off the game's thread; a second or so).

Details

The screen's refresh a second, where the system will say: under Windows, the highest of its video controllers (one question to PowerShell, off the game's thread; a second or so). Left unknown elsewhere, and when it cannot be had. Read by Graphics.FrameGovernor once the engine is up.

waitForWebGL

method source
Main.prototype.waitForWebGL(then)

WebGL that is there in a moment: a graphics driver that refuses the GPU process for a second (it ran out of GPU channels, a reset) left the game stopped at "Your browser does not support WebGL" while the next try would have had it.

Details

WebGL that is there in a moment: a graphics driver that refuses the GPU process for a second (it ran out of GPU channels, a reset) left the game stopped at "Your browser does not support WebGL" while the next try would have had it. Asked every half second for ten seconds, each test context given back at once; then one reload of the page (a new page asks for a new GPU process); then on, to the usual message.

eraseLoadingSpinner

method source
Main.prototype.eraseLoadingSpinner()

Erase loading spinner.

testXhr

method source
Main.prototype.testXhr()

Test xhr.

hookNwjsClose

method source
Main.prototype.hookNwjsClose()

Hook nwjs close.

afterPluginScripts

method source
Main.prototype.afterPluginScripts(then)

Once every plugin script just added has loaded or failed, as the load event would have waited.

printError

method source
Main.prototype.printError(name, message)

Print error.