Method | Description | |
---|---|---|
CacheDictionaryMedia ( idDict dict ) : void |
Caches media referenced from in key/value pairs in the given dictionary. This is called after parsing an EntityDef and for each entity spawnArgs before merging the entitydef. It could be done post-merge, but that would avoid the fast pre-cache check associated with each entityDef. |
|
Draw ( int clientIndex ) : bool | ||
GetMapLoadingInterface ( string defaultInterface ) : string | ||
GetTimeGroupTime ( int timeGroup ) : int |
Used to manage divergent time-lines.
|
|
HandleGuiCommands ( string menuCommand ) : string |
When the game is running it's own UI fullscreen, GUI commands are passed through here return NULL once the fullscreen UI mode should stop, or "main" to go to main menu.
|
|
Init ( ) : void |
Initialize the game for the first time.
|
|
InitFromNewMap ( string mapName, |
Loads a map and spawns all the entities.
|
|
RunFrame ( |
Runs a game frame, may return a session command for level changing, etc.
|
|
SelectTimeGroup ( int timeGroup ) : void |
Used to manage divergent time-lines.
|
|
SetPersistentPlayerInformation ( int clientIndex, idDict playerInfo ) : void |
The session calls this right before a new level is loaded.
|
|
SetServerInfo ( idDict serverInfo ) : void |
Sets the serverinfo at map loads and when it changes.
|
|
SetUserInformation ( int clientIndex, idDict userInfo, bool isClient, bool canModify ) : idDict |
Sets the user info for a client.
|
|
SpawnPlayer ( int clientIndex ) : void |
Spawns the player entity to be used by the client.
|
public abstract CacheDictionaryMedia ( idDict dict ) : void | ||
dict | idDict | |
return | void |
public abstract Draw ( int clientIndex ) : bool | ||
clientIndex | int | |
return | bool |
public abstract GetMapLoadingInterface ( string defaultInterface ) : string | ||
defaultInterface | string | |
return | string |
public abstract GetTimeGroupTime ( int timeGroup ) : int | ||
timeGroup | int | |
return | int |
public abstract HandleGuiCommands ( string menuCommand ) : string | ||
menuCommand | string | |
return | string |
public abstract InitFromNewMap ( string mapName, |
||
mapName | string | |
renderWorld | ||
soundWorld | ||
isServer | bool | |
isClient | bool | |
randSeed | int | |
return | void |
public abstract RunFrame ( |
||
userCommands | ||
return |
public abstract SelectTimeGroup ( int timeGroup ) : void | ||
timeGroup | int | |
return | void |
public abstract SetPersistentPlayerInformation ( int clientIndex, idDict playerInfo ) : void | ||
clientIndex | int | |
playerInfo | idDict | |
return | void |
public abstract SetServerInfo ( idDict serverInfo ) : void | ||
serverInfo | idDict | |
return | void |
public abstract SetUserInformation ( int clientIndex, idDict userInfo, bool isClient, bool canModify ) : idDict | ||
clientIndex | int | |
userInfo | idDict | |
isClient | bool | |
canModify | bool | If true, the game can modify the user info. Never true on a network client. |
return | idDict |
public abstract SpawnPlayer ( int clientIndex ) : void | ||
clientIndex | int | |
return | void |