Scripting API
Scripting API
JSExportAttribute
Class in Abyss.Core, from Abyss.Core.
Marks a static method the page calls: the build's game.js gives it to the game's scripts as its class's, camel-cased — Game.Pause as Game.pause() — a promise of what it gives, since it runs at the start of the game's next frame, on the engine thread, where the world is the game's to change. What crosses is what crosses for JSImportAttribute; what it throws breaks the promise with its message.
public sealed class JSExportAttribute : Attribute