Pyrogenesis  trunk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Functions
JSI_Mod Namespace Reference

Functions

void RegisterScriptFunctions (const ScriptInterface &scriptInterface)
 Registers the functions of the JavaScript interface for internationalization and localization into the specified JavaScript context. More...
 
JS::Value GetEngineInfo (ScriptInterface::CxPrivate *pCxPrivate)
 
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)
 

Function Documentation

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.

Returns
JS object with available mods as the keys of the modname.json properties.
JS::Value JSI_Mod::GetEngineInfo ( ScriptInterface::CxPrivate pCxPrivate)
void JSI_Mod::RegisterScriptFunctions ( const ScriptInterface scriptInterface)

Registers the functions of the JavaScript interface for internationalization and localization into the specified JavaScript context.

Parameters
ScriptInterfaceJavaScript context where RegisterScriptFunctions() registers the functions.
See also
GuiScriptingInit()
void JSI_Mod::RestartEngine ( ScriptInterface::CxPrivate pCxPrivate)
void JSI_Mod::SetMods ( ScriptInterface::CxPrivate pCxPrivate,
const std::vector< CStr > &  mods 
)