IdGameLocal Sequences: Difference between revisions
From The DarkMod Wiki
Jump to navigationJump to search
New page: The idGameLocal game object has a set of methods, which are called by the closed source code. The sequence of this calls depends on the game situation, so this is what I observed so far. ... |
No edit summary |
||
Line 1: | Line 1: | ||
The idGameLocal game object has a set of methods, which are called by the closed source code. The sequence of this calls depends on the game situation, so this is what I observed so far. | The idGameLocal game object has a set of methods, which are called by the closed source code. The sequence of this calls depends on the game situation, so this is what I observed so far. | ||
Fresh Game Startup | == Fresh Game Startup == | ||
* idGameLocal() | * idGameLocal() | ||
** Clear() | ** Clear() | ||
* Init() | * Init() | ||
During Main Menu | == During Main Menu == | ||
* HandleMainMenuCommands() | * HandleMainMenuCommands() | ||
When starting a map afresh | == When starting a map afresh == | ||
* MapShutdown() | * MapShutdown() | ||
** MapClear() | ** MapClear() | ||
Line 17: | Line 17: | ||
** MapPopulate() - spawns entities | ** MapPopulate() - spawns entities | ||
When loading a savegame | == When loading a savegame == | ||
* MapShutdown() | * MapShutdown() | ||
** MapClear() | ** MapClear() | ||
Line 23: | Line 23: | ||
** LoadMap() | ** LoadMap() | ||
When completing a mission | == When completing a mission == | ||
* MapShutdown() | * MapShutdown() | ||
** MapClear() | ** MapClear() | ||
When Quitting a map | == When Quitting a map == | ||
* MapShutdown() | * MapShutdown() | ||
** MapClear() | ** MapClear() | ||
When Quitting the Game | == When Quitting the Game == | ||
* MapShutdown() | * MapShutdown() | ||
** MapClear() | ** MapClear() |
Revision as of 05:45, 14 June 2010
The idGameLocal game object has a set of methods, which are called by the closed source code. The sequence of this calls depends on the game situation, so this is what I observed so far.
Fresh Game Startup
- idGameLocal()
- Clear()
- Init()
During Main Menu
- HandleMainMenuCommands()
When starting a map afresh
- MapShutdown()
- MapClear()
- InitFromNewMap()
- MapShutdown() - if we have a previously loaded map
- LoadMap()
- MapPopulate() - spawns entities
When loading a savegame
- MapShutdown()
- MapClear()
- InitFromSavegame()
- LoadMap()
When completing a mission
- MapShutdown()
- MapClear()
When Quitting a map
- MapShutdown()
- MapClear()
When Quitting the Game
- MapShutdown()
- MapClear()
- Shutdown()
- MapShutdown() - again
- MapClear()
- Clear()
- MapShutdown() - again