Pyrogenesis
trunk
|
Functions | |
void | RegisterScriptFunctions (ScriptInterface &scriptInterface) |
Registers the functions of the JavaScript interface for internationalization and localization into the specified JavaScript context. More... | |
JS::Value | GetAvailableMods (ScriptInterface::CxPrivate *pCxPrivate) |
Returns a JS object containing a listing of available mods that have a modname.json file in their modname folder. More... | |
void | RestartEngine (ScriptInterface::CxPrivate *pCxPrivate) |
void | SetMods (ScriptInterface::CxPrivate *pCxPrivate, const std::vector< CStr > &mods) |
JS::Value JSI_Mod::GetAvailableMods | ( | ScriptInterface::CxPrivate * | pCxPrivate | ) |
Returns a JS object containing a listing of available mods that have a modname.json file in their modname folder.
The returned object looks like { modname1: json1, modname2: json2, ... } where jsonN is the content of the modnameN/modnameN.json file as a JS object.
void JSI_Mod::RegisterScriptFunctions | ( | ScriptInterface & | scriptInterface | ) |
Registers the functions of the JavaScript interface for internationalization and localization into the specified JavaScript context.
ScriptInterface | JavaScript context where RegisterScriptFunctions() registers the functions. |
void JSI_Mod::RestartEngine | ( | ScriptInterface::CxPrivate * | pCxPrivate | ) |
void JSI_Mod::SetMods | ( | ScriptInterface::CxPrivate * | pCxPrivate, |
const std::vector< CStr > & | mods | ||
) |