Files
Aurora.3/code/controllers/subsystems/initialization/misc_early.dm
Karolis 8b785b3815 New record consoles and removal of old datacore, adds SSrecords (#4878)
This PR is depending on #4868 for it's ui framework. This PR mostly makes new SSrecords subsystem responsible for storing records. This should replace old datacore.

Make new SSrecords.
Make things use SSrecords and whole code compile
Made VueUi button <vui-button> to push parameters as JSON, preserving client side data stricture.

    Add new records console and admin record management.

I am mostly looking for feedback regarding SSrecords and it's data storage mechanism criticism (It's using lists for storage)
2019-07-27 12:24:16 +03:00

53 lines
1.3 KiB
Plaintext

// This is one of the first subsystems initialized by the MC.
// Stuff that should be loaded before everything else that isn't significant enough to get its own SS goes here.
/datum/controller/subsystem/misc_early
name = "Early Miscellaneous Init"
init_order = SS_INIT_MISC_FIRST
flags = SS_NO_FIRE | SS_NO_DISPLAY
/datum/controller/subsystem/misc_early/Initialize(timeofday)
// Setup the global HUD.
global_hud = new
global_huds = list(
global_hud.druggy,
global_hud.blurry,
global_hud.vimpaired,
global_hud.darkMask,
global_hud.nvg,
global_hud.thermal,
global_hud.meson,
global_hud.science,
global_hud.holomap
)
// This is kinda important. Set up details of what the hell things are made of.
populate_material_list()
// Create autolathe recipes, as above.
populate_lathe_recipes()
// Create robolimbs for chargen.
populate_robolimb_list()
// Set up antags.
// Spawn locations are set after map init!
populate_antag_type_list()
// Get BOREALIS to warn staff about a lazy admin forgetting visibility to 0
// before anyone has a chance to change it!
if (discord_bot)
discord_bot.alert_server_visibility()
global_initialize_webhooks()
// Setup ore.
for(var/oretype in subtypesof(/ore))
var/ore/OD = new oretype()
ore_data[OD.name] = OD
// Setup cargo spawn lists.
global.cargo_master.setup_cargo_stock()
..()