Files
CHOMPStation2/code/global_init.dm
2025-04-21 19:16:48 +02:00

36 lines
1.3 KiB
Plaintext

/*
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 controller) and spawning their setup.
4. processScheduler/setup() runs, creating all the processes. game_controller/setup() runs, calling initialize() on all movable atoms in the world.
5. The gameticker is created.
*/
var/global/datum/global_init/init = new ()
/*
Pre-map initialization stuff should go here.
*/
/datum/global_init/New()
/* VOREStation Removal - Ours is even earlier, in world/New()
//logs
GLOB.log_directory += time2text(world.realtime, "YYYY/MM-Month/DD-Day/round-hh-mm-ss")
diary = file("[GLOB.log_directory].log")
GLOB.href_logfile = file("[GLOB.log_directory]-hrefs.htm")
GLOB.error_log = file("[GLOB.log_directory]-error.log")
GLOB.debug_log = file("[GLOB.log_directory]-debug.log")
GLOB.debug_log << "[log_end]\n[log_end]\nStarting up. [time_stamp()][log_end]\n---------------------[log_end]"
*/ //VOREStation Removal End
decls_repository = new()
initialize_integrated_circuits_list()
qdel(src) //we're done
/datum/global_init/Destroy()
global.init = null
..()
return 2 // QDEL_HINT_IWILLGC