IdGameLocal Sequences: Difference between revisions
From The DarkMod Wiki
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 26: | Line 26: | ||
* MapShutdown() | * MapShutdown() | ||
** MapClear() | ** MapClear() | ||
== When dying in a mission == | |||
* MapShutdown() | |||
** MapClear() | |||
== When restarting a map == | |||
* MapShutdown() | |||
** MapClear() | |||
* InitFromNewMap() | |||
** MapShutdown() - if we have a previously loaded map | |||
** LoadMap() | |||
** MapPopulate() - spawns entities | |||
== When Quitting a map == | == When Quitting a map == |
Latest revision as of 06:14, 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 dying in a mission
- MapShutdown()
- MapClear()
When restarting a map
- MapShutdown()
- MapClear()
- InitFromNewMap()
- MapShutdown() - if we have a previously loaded map
- LoadMap()
- MapPopulate() - spawns entities
When Quitting a map
- MapShutdown()
- MapClear()
When Quitting the Game
- MapShutdown()
- MapClear()
- Shutdown()
- MapShutdown() - again
- MapClear()
- Clear()
- MapShutdown() - again