ParaGlobal namespace contains a list of HAPI functions to access the boot strapper functionality.
More...
#include <ParaScriptingGlobal.h>
ParaGlobal namespace contains a list of HAPI functions to access the boot strapper functionality.
Bootstrapper file is a xml file to be executed at the very beginning of the game engine. Its main function is to specify the main game loop file to be activated. When the ParaIDE set a solution to be active, it actually modifies the bootstrapper file to load the main file of that application solution.
§ GetMainLoopFile()
const char * ParaScripting::ParaBootStrapper::GetMainLoopFile |
( |
| ) |
|
|
static |
get the game loop file.
the game loop file provides the heart beat of the application. It is also the very first(entry) script to be activated when the application starts up. The default game loop is ./script/gameinterface.lua
§ LoadDefault()
void ParaScripting::ParaBootStrapper::LoadDefault |
( |
| ) |
|
|
static |
load the default setting.
this function is called at the constructor.
§ LoadFromFile()
bool ParaScripting::ParaBootStrapper::LoadFromFile |
( |
const char * |
sXMLfile | ) |
|
|
static |
load from a given XML file.
- Parameters
-
sXMLfile | the path of the file, if this is "", the config/bootstrapper.xml will be used. |
- Returns
- true if success
§ SaveToFile()
bool ParaScripting::ParaBootStrapper::SaveToFile |
( |
const char * |
sXMLfile | ) |
|
|
static |
save to a given XML file.
- Parameters
-
sXMLfile | the path of the file, if this is "", the config/bootstrapper.xml will be used. |
- Returns
- true if success
§ SetMainLoopFile()
void ParaScripting::ParaBootStrapper::SetMainLoopFile |
( |
const char * |
sMainFile | ) |
|
|
static |
Set the game loop file.
the game loop file provides the heart beat of the application. It is also the very first(entry) script to be activated when the application starts up. The default game loop is ./script/gameinterface.lua
The documentation for this class was generated from the following files:
- Client/trunk/ParaEngineClient/ParaScriptBindings/ParaScriptingGlobal.h
- Client/trunk/ParaEngineClient/ParaScriptBindings/ParaScriptingGlobal.cpp