Added epoch to scripts.
This commit is contained in:
@ -12,13 +12,16 @@ bool sandboxSceneInit(sandboxscene_t *game) {
|
||||
scripterInit(&game->scripter, &game->engine);
|
||||
game->scripter.user = game;
|
||||
|
||||
// Add APIs
|
||||
scriptsApiIo(&game->scripter);
|
||||
scriptsApiDisplay(&game->scripter);
|
||||
scriptsApiAsset(&game->scripter);
|
||||
|
||||
scriptsApiEpoch(&game->scripter);
|
||||
|
||||
// Load main script
|
||||
assetScripterAppend(&game->scripter, "scripts/main.js");
|
||||
|
||||
|
||||
// Invoke initialization.
|
||||
scripterInvokeMethodSimple(&game->scripter, "init");
|
||||
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user