My Project
Static Public Member Functions | List of all members
ParaScripting::ParaBootStrapper Class Reference

ParaGlobal namespace contains a list of HAPI functions to access the boot strapper functionality. More...

#include <ParaScriptingGlobal.h>

Static Public Member Functions

static bool LoadFromFile (const char *sXMLfile)
 load from a given XML file. More...
 
static bool SaveToFile (const char *sXMLfile)
 save to a given XML file. More...
 
static void LoadDefault ()
 load the default setting. More...
 
static const char * GetMainLoopFile ()
 get the game loop file. More...
 
static void SetMainLoopFile (const char *sMainFile)
 Set the game loop file. More...
 

Detailed Description

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.

Member Function Documentation

§ 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
sXMLfilethe 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
sXMLfilethe 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: