Class Gameinfo
Documentation of includes/core/gameinfo.class.php
Provides information to the current game which is running.
Methods
getModeId
Returns the ID from the current running Modescript or given Modescript name.
Description
int = getModeId ( [ $name ] )Parameters
- 
$nameIf passed, then this Method returns the ID of the given Modescript name, instead of the current running Modescript. 
Example
$name = 'time_attack';
$id = $aseco->server->gameinfo->getModeId($name);Return Values
2getModeName
Returns the shorten Scriptname from the current running Modescript or given Modescript ID.
Description
string = getModeName ( [ $id ] )Parameters
- 
$idIf passed, then this Method returns the name of the given Modescript ID, instead of the current running Modescript. 
Example
$id = 8;
$name = $aseco->server->gameinfo->getModeName($id);Return Values
LapsgetModeScriptName
Returns the ScriptName from the current running Modescript.
Description
string = getModeScriptName ( [ $id ] )Parameters
- 
$idIf passed, then this Method returns the Scriptname of the given Modescript, instead of the current running Modescript. 
Example
$scriptname = $aseco->server->gameinfo->getModeScriptName();Return Values
TimeAttack.Script.txtgetModeVersion
Returns the version from the current running Modescript.
Description
string = getModeVersion ( void )Example
$version = $aseco->server->gameinfo->getModeVersion();Return Values
2014-07-02getNextModeId
Returns the Modescript ID from the next running Modescript.
Description
string = getNextModeId ( void )Example
$id = $aseco->server->gameinfo->getNextModeId();Return Values
2getNextModeName
Returns the shorten Scriptname from the next running Modescript.
Description
string = getNextModeName ( void )Example
$name = $aseco->server->gameinfo->getNextModeName();Return Values
LapsClass Gameinfo
Documentation of includes/core/gameinfo.class.php
Provides information to the current game which is running.
Properties
| Members | Example data or description | 
|---|---|
| $aseco->server->gameinfo->mode | The Gamemode ID e.g. 2 | 
| $aseco->server->gameinfo->script | array()with values fromGetModeScriptInfo | 
| $aseco->server->gameinfo->matchmaking | array()with ModeMatchmaking settings fromGetModeScriptSettings | 
| $aseco->server->gameinfo->modebase | array()with ModeBase settings fromGetModeScriptSettings | 
| $aseco->server->gameinfo->rounds | array()with Rounds and RoundsBase settings fromGetModeScriptSettings | 
| $aseco->server->gameinfo->time_attack | array()with TimeAttack settings fromGetModeScriptSettings | 
| $aseco->server->gameinfo->team | array()with Team and RoundsBase settings fromGetModeScriptSettings | 
| $aseco->server->gameinfo->laps | array()with Laps settings fromGetModeScriptSettings | 
| $aseco->server->gameinfo->cup | array()with Cup and RoundsBase settings fromGetModeScriptSettings | 
| $aseco->server->gameinfo->team_attack | array()with TeamAttack settings fromGetModeScriptSettings | 
| $aseco->server->gameinfo->chase | array()with Chase settings fromGetModeScriptSettings | 
| $aseco->server->gameinfo->knockout | array()with Knockout (supported) settings fromGetModeScriptSettings | 
| $aseco->server->gameinfo->doppler | array()with Doppler settings fromGetModeScriptSettings | 
The names in a array (e.g.
$aseco->server->gameinfo->rounds) are named as they are returned fromGetModeScriptSettings, but the prefixS_is removed. Example:S_UseAlternateRulesis accessible as$aseco->server->gameinfo->rounds['UseAlternateRules'].
See the full list of supported Modescript Settings in the Modescript Settings documentation.
Class Gameinfo
Documentation of includes/core/gameinfo.class.php
Provides information to the current game which is running.
Constants
| Constants | Values | 
|---|---|
| Gameinfo::ROUNDS | 1 | 
| Gameinfo::TIME_ATTACK | 2 | 
| Gameinfo::TEAM | 3 | 
| Gameinfo::LAPS | 4 | 
| Gameinfo::CUP | 5 | 
| Gameinfo::TEAM_ATTACK | 6 | 
| Gameinfo::CHASE | 7 | 
| Gameinfo::KNOCKOUT | 101 | 
| Gameinfo::DOPPLER | 102 | 
Do NOT use the Values (e.g.
2forGameinfo::TIME_ATTACK) directly, because these may be changed if an new Gamemode is added!
This is a private enthusiast Website. Maniaplanet, Trackmania, Shootmania, Nadeo are trademarks of Ubisoft Entertainment.
				Windows is a registered trademark of Microsoft Corporation.

