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.
Static Public Member Functions | |
static bool | LoadFromFile (const char *sXMLfile) |
load from a given XML file. | |
static bool | SaveToFile (const char *sXMLfile) |
save to a given XML file. | |
static void | LoadDefault () |
load the default setting. | |
static const char * | GetMainLoopFile () |
get the game loop file. | |
static void | SetMainLoopFile (const char *sMainFile) |
Set the game loop file. |
bool ParaScripting::ParaBootStrapper::LoadFromFile | ( | const char * | sXMLfile | ) | [static] |
load from a given XML file.
sXMLfile | the path of the file, if this is "", the config/bootstrapper.xml will be used. |
bool ParaScripting::ParaBootStrapper::SaveToFile | ( | const char * | sXMLfile | ) | [static] |
save to a given XML file.
sXMLfile | the path of the file, if this is "", the config/bootstrapper.xml will be used. |
void ParaScripting::ParaBootStrapper::LoadDefault | ( | ) | [static] |
load the default setting.
this function is called at the constructor.
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
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