Game Engine - Base engine calls
A simple start. |
|
Here are some useful functions that communicate with the game engine. The group is not really coherent; only small and independent functions are shown here.
For an overview of the game engine functions, visit the Engine Overview page.
These base functions are available:
- void Console(stringdata s) - executes a console command. I.e. 'Console("echo hi")' will echo the text "hi" into the console.
- void GameStop() - exits the game back to the menu screen.
- float GetFPS() - returns the framerate.
- int GetSimTime() - returns the game time in milliseconds.
- int GetServerTime() - returns the multiplayer server (synchronized) time in milliseconds.
- int IniGlobalGetInt(stringdata key) - gets an integer from the main racer.ini file.
- float IniGlobalGetFloat(stringdata key) - gets a float from the main racer.ini file.
- handle IniGetMain() - Returns a handle to the main configuration file (currently racer.ini; this might change to panthera/config/config.ini).
- handle IniGetAppConfig() - Returns a handle to the configuration file of the current application; i.e. myapp/config/config.ini.
(last
updated
January 13, 2014
)