standardize & document controller/subs definitions

renames "PreInit" to OnNew because that's what it actually is.
This commit is contained in:
spookerton
2022-04-12 12:28:25 +01:00
parent cdf7c84c06
commit fbd8d3c46b
13 changed files with 51 additions and 24 deletions
+29 -7
View File
@@ -1,19 +1,41 @@
/datum/controller
var/name
// The object used for the clickable stat() button.
var/obj/effect/statclick/statclick
/// The display name of this controller.
/datum/controller/var/name
/// The atom used to provide a clickable stat line in the MC tab for this controller.
/datum/controller/var/obj/effect/statclick/statclick
// Do not implement any base behaviors here.
/// Called to set up this controller.
/datum/controller/proc/Initialize()
return
//cleanup actions
// Do not implement any base behaviors here.
/// Called to clean up / finalize this controller.
/datum/controller/proc/Shutdown()
return
//when we enter dmm_suite.load_map
// Do not implement any base behaviors here.
/// Called when dmm_suite begins loading a map.
/datum/controller/proc/StartLoadingMap()
return
//when we exit dmm_suite.load_map
// Do not implement any base behaviors here.
/// Called when dmm_suite finishes loading a map.
/datum/controller/proc/StopLoadingMap()
return
// Do not implement any base behaviors here.
/// To be called on the OLD instance if the controller fails in some way that requires it to be replaced.
/datum/controller/proc/Recover()
return
// Do not implement any base behaviors here.
/// Called when an update to the stat line in the MC tab is requested.
/datum/controller/proc/stat_entry()
return