Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix initialisation order of global_init and other global vars
- Loading branch information
1 parent
9c043e0
commit 558a44f
Showing
3 changed files
with
30 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/* | ||
The initialization of the game happens roughly like this: | ||
1. All global variables are initialized (including the global_init instance$ | ||
2. The map is initialized, and map objects are created. | ||
3. world/New() runs, creating the process scheduler (and the old master con$ | ||
4. processScheduler/setup() runs, creating all the processes. game_controll$ | ||
5. The gameticker is created. | ||
*/ | ||
|
||
var/global/datum/global_init/init = new () | ||
|
||
/* | ||
Pre-map initialization stuff should go here. | ||
*/ | ||
/datum/global_init/New() | ||
generate_gameid() | ||
|
||
makeDatumRefLists() | ||
populateGlobalLists() | ||
load_configuration() | ||
|
||
initialize_chemical_reagents() | ||
initialize_chemical_reactions() | ||
|
||
qdel(src) //we're done | ||
|
||
/datum/global_init/Destroy() | ||
return 1 |