Document the world (#46495)

This commit is contained in:
oranges
2019-09-16 16:44:42 +12:00
committed by GitHub
parent b48ce19e54
commit 5ccda49a29
3 changed files with 27 additions and 3 deletions
+1
View File
@@ -8,6 +8,7 @@
**/
//This is the ABSOLUTE ONLY THING that should init globally like this
//2019 update: the failsafe,config and Global controllers also do it
GLOBAL_REAL(Master, /datum/controller/master) = new
//THIS IS THE INIT ORDER
+17 -3
View File
@@ -2,8 +2,22 @@
GLOBAL_VAR(restart_counter)
//This happens after the Master subsystem new(s) (it's a global datum)
//So subsystems globals exist, but are not initialised
/**
* World creation
*
* Here is where a round itself is actually begun and setup, lots of important config changes happen here
* * db connection setup
* * config loaded from files
* * loads admins
* * Sets up the dynamic menu system
* * and most importantly, calls initialize on the master subsystem, starting the game loop that causes the rest of the game to begin processing and setting up
*
* Note this happens after the Master subsystem is created (as that is a global datum), this means all the subsystems exist,
* but they have not been Initialized at this point, only their New proc has run
*
* Nothing happens until something moves. ~Albert Einstein
*
*/
/world/New()
log_world("World loaded at [time_stamp()]!")
@@ -329,4 +343,4 @@ GLOBAL_VAR(restart_counter)
/world/proc/on_tickrate_change()
SStimer?.reset_buckets()
SStimer?.reset_buckets()
+9
View File
@@ -1,6 +1,15 @@
//This file is just for the necessary /world definition
//Try looking in game/world.dm
/**
* # World
*
* Two possibilities exist: either we are alone in the Universe or we are not. Both are equally terrifying. ~ Arthur C. Clarke
*
* The byond world object stores some basic byond level config, and has a few hub specific procs for managing hub visiblity
*
* The world /New() is the root of where a round itself begins
*/
/world
mob = /mob/dead/new_player
turf = /turf/open/space/basic