This commit is contained in:
Cyberboss
2017-03-22 14:52:21 -04:00
parent 6a67a84c33
commit fb596bcdb3
47 changed files with 48 additions and 48 deletions

View File

@@ -68,14 +68,14 @@
//prevents distinguishing identical timers with the wait variable //prevents distinguishing identical timers with the wait variable
#define TIMER_NO_HASH_WAIT 0x10 #define TIMER_NO_HASH_WAIT 0x10
#define SUBSYSTEM(X) var/datum/controller/subsystem/##X/SS##X;\ #define SUBSYSTEM_DEF(X) var/datum/controller/subsystem/##X/SS##X;\
/datum/controller/subsystem/##X/New(){\ /datum/controller/subsystem/##X/New(){\
NEW_SS_GLOBAL(SS##X);\ NEW_SS_GLOBAL(SS##X);\
..();\ ..();\
}\ }\
/datum/controller/subsystem/##X /datum/controller/subsystem/##X
#define PROCESSING_SUBSYSTEM(X) var/datum/controller/subsystem/processing/##X/SS##X;\ #define PROCESSING_SUBSYSTEM_DEF(X) var/datum/controller/subsystem/processing/##X/SS##X;\
/datum/controller/subsystem/processing/##X/New(){\ /datum/controller/subsystem/processing/##X/New(){\
NEW_SS_GLOBAL(SS##X);\ NEW_SS_GLOBAL(SS##X);\
..();\ ..();\

View File

@@ -1,4 +1,4 @@
SUBSYSTEM(acid) SUBSYSTEM_DEF(acid)
name = "Acid" name = "Acid"
priority = 40 priority = 40
flags = SS_NO_INIT|SS_BACKGROUND flags = SS_NO_INIT|SS_BACKGROUND

View File

@@ -6,7 +6,7 @@
#define SSAIR_HOTSPOTS 6 #define SSAIR_HOTSPOTS 6
#define SSAIR_SUPERCONDUCTIVITY 7 #define SSAIR_SUPERCONDUCTIVITY 7
SUBSYSTEM(air) SUBSYSTEM_DEF(air)
name = "Air" name = "Air"
init_order = -1 init_order = -1
priority = 20 priority = 20

View File

@@ -1,4 +1,4 @@
SUBSYSTEM(assets) SUBSYSTEM_DEF(assets)
name = "Assets" name = "Assets"
init_order = -3 init_order = -3
flags = SS_NO_FIRE flags = SS_NO_FIRE

View File

@@ -2,7 +2,7 @@
#define INITIALIZATION_INNEW_MAPLOAD 1 //New should call Initialize(TRUE) #define INITIALIZATION_INNEW_MAPLOAD 1 //New should call Initialize(TRUE)
#define INITIALIZATION_INNEW_REGULAR 2 //New should call Initialize(FALSE) #define INITIALIZATION_INNEW_REGULAR 2 //New should call Initialize(FALSE)
SUBSYSTEM(atoms) SUBSYSTEM_DEF(atoms)
name = "Atoms" name = "Atoms"
init_order = 11 init_order = 11
flags = SS_NO_FIRE flags = SS_NO_FIRE

View File

@@ -1,4 +1,4 @@
SUBSYSTEM(augury) SUBSYSTEM_DEF(augury)
name = "Augury" name = "Augury"
flags = SS_NO_INIT flags = SS_NO_INIT

View File

@@ -1,7 +1,7 @@
#define COMMUNICATION_COOLDOWN 600 #define COMMUNICATION_COOLDOWN 600
#define COMMUNICATION_COOLDOWN_AI 600 #define COMMUNICATION_COOLDOWN_AI 600
SUBSYSTEM(communications) SUBSYSTEM_DEF(communications)
name = "Communications" name = "Communications"
flags = SS_NO_INIT | SS_NO_FIRE flags = SS_NO_INIT | SS_NO_FIRE

View File

@@ -1,4 +1,4 @@
SUBSYSTEM(disease) SUBSYSTEM_DEF(disease)
name = "Disease" name = "Disease"
flags = SS_KEEP_TIMING|SS_NO_INIT flags = SS_KEEP_TIMING|SS_NO_INIT

View File

@@ -1,4 +1,4 @@
SUBSYSTEM(events) SUBSYSTEM_DEF(events)
name = "Events" name = "Events"
init_order = 6 init_order = 6

View File

@@ -1,4 +1,4 @@
SUBSYSTEM(fire_burning) SUBSYSTEM_DEF(fire_burning)
name = "Fire Burning" name = "Fire Burning"
priority = 40 priority = 40
flags = SS_NO_INIT|SS_BACKGROUND flags = SS_NO_INIT|SS_BACKGROUND

View File

@@ -1,4 +1,4 @@
SUBSYSTEM(garbage) SUBSYSTEM_DEF(garbage)
name = "Garbage" name = "Garbage"
priority = 15 priority = 15
wait = 5 wait = 5

View File

@@ -1,4 +1,4 @@
SUBSYSTEM(icon_smooth) SUBSYSTEM_DEF(icon_smooth)
name = "Icon Smoothing" name = "Icon Smoothing"
init_order = -5 init_order = -5
wait = 1 wait = 1

View File

@@ -1,4 +1,4 @@
SUBSYSTEM(inbounds) SUBSYSTEM_DEF(inbounds)
name = "Inbounds" name = "Inbounds"
priority = 40 priority = 40
flags = SS_NO_INIT flags = SS_NO_INIT

View File

@@ -1,4 +1,4 @@
SUBSYSTEM(ipintel) SUBSYSTEM_DEF(ipintel)
name = "XKeyScore" name = "XKeyScore"
init_order = -10 init_order = -10
flags = SS_NO_FIRE flags = SS_NO_FIRE

View File

@@ -1,4 +1,4 @@
SUBSYSTEM(job) SUBSYSTEM_DEF(job)
name = "Jobs" name = "Jobs"
init_order = 14 init_order = 14
flags = SS_NO_FIRE flags = SS_NO_FIRE

View File

@@ -2,7 +2,7 @@ var/list/lighting_update_lights = list() // List of lighting sources queued
var/list/lighting_update_corners = list() // List of lighting corners queued for update. var/list/lighting_update_corners = list() // List of lighting corners queued for update.
var/list/lighting_update_objects = list() // List of lighting objects queued for update. var/list/lighting_update_objects = list() // List of lighting objects queued for update.
SUBSYSTEM(lighting) SUBSYSTEM_DEF(lighting)
name = "Lighting" name = "Lighting"
wait = 2 wait = 2
init_order = -20 init_order = -20

View File

@@ -1,4 +1,4 @@
SUBSYSTEM(machines) SUBSYSTEM_DEF(machines)
name = "Machines" name = "Machines"
init_order = 9 init_order = 9
flags = SS_KEEP_TIMING flags = SS_KEEP_TIMING

View File

@@ -1,4 +1,4 @@
SUBSYSTEM(mapping) SUBSYSTEM_DEF(mapping)
name = "Mapping" name = "Mapping"
init_order = 12 init_order = 12
flags = SS_NO_FIRE flags = SS_NO_FIRE

View File

@@ -1,4 +1,4 @@
SUBSYSTEM(minimap) SUBSYSTEM_DEF(minimap)
name = "Minimap" name = "Minimap"
init_order = -2 init_order = -2
flags = SS_NO_FIRE flags = SS_NO_FIRE

View File

@@ -1,4 +1,4 @@
SUBSYSTEM(mobs) SUBSYSTEM_DEF(mobs)
name = "Mobs" name = "Mobs"
init_order = 4 init_order = 4
priority = 100 priority = 100

View File

@@ -1,4 +1,4 @@
SUBSYSTEM(npcpool) SUBSYSTEM_DEF(npcpool)
name = "NPC Pool" name = "NPC Pool"
init_order = 17 init_order = 17
flags = SS_POST_FIRE_TIMING|SS_NO_INIT|SS_NO_TICK_CHECK flags = SS_POST_FIRE_TIMING|SS_NO_INIT|SS_NO_TICK_CHECK

View File

@@ -1,4 +1,4 @@
SUBSYSTEM(orbit) SUBSYSTEM_DEF(orbit)
name = "Orbits" name = "Orbits"
priority = 35 priority = 35
wait = 2 wait = 2

View File

@@ -1,5 +1,5 @@
var/list/obj/item/device/paicard/pai_card_list = list() var/list/obj/item/device/paicard/pai_card_list = list()
SUBSYSTEM(pai) SUBSYSTEM_DEF(pai)
name = "pAI" name = "pAI"
flags = SS_NO_INIT|SS_NO_FIRE flags = SS_NO_INIT|SS_NO_FIRE

View File

@@ -1,4 +1,4 @@
SUBSYSTEM(parallax) SUBSYSTEM_DEF(parallax)
name = "Parallax" name = "Parallax"
wait = 2 wait = 2
flags = SS_POST_FIRE_TIMING | SS_FIRE_IN_LOBBY | SS_BACKGROUND | SS_NO_INIT flags = SS_POST_FIRE_TIMING | SS_FIRE_IN_LOBBY | SS_BACKGROUND | SS_NO_INIT

View File

@@ -1,4 +1,4 @@
SUBSYSTEM(persistence) SUBSYSTEM_DEF(persistence)
name = "Persistence" name = "Persistence"
init_order = -100 init_order = -100
flags = SS_NO_FIRE flags = SS_NO_FIRE

View File

@@ -1,6 +1,6 @@
#define PING_BUFFER_TIME 25 #define PING_BUFFER_TIME 25
SUBSYSTEM(ping) SUBSYSTEM_DEF(ping)
name = "Ping" name = "Ping"
wait = 6 wait = 6
flags = SS_NO_INIT|SS_POST_FIRE_TIMING|SS_FIRE_IN_LOBBY flags = SS_NO_INIT|SS_POST_FIRE_TIMING|SS_FIRE_IN_LOBBY

View File

@@ -1,6 +1,6 @@
//Fires five times every second. //Fires five times every second.
PROCESSING_SUBSYSTEM(fastprocess) PROCESSING_SUBSYSTEM_DEF(fastprocess)
name = "Fast Processing" name = "Fast Processing"
wait = 2 wait = 2
stat_tag = "FP" stat_tag = "FP"

View File

@@ -1,5 +1,5 @@
PROCESSING_SUBSYSTEM(flightpacks) PROCESSING_SUBSYSTEM_DEF(flightpacks)
name = "Flightpack Movement" name = "Flightpack Movement"
priority = 30 priority = 30
wait = 2 wait = 2

View File

@@ -1,4 +1,4 @@
SUBSYSTEM(obj) SUBSYSTEM_DEF(obj)
name = "Objects" name = "Objects"
priority = 40 priority = 40
flags = SS_NO_INIT flags = SS_NO_INIT

View File

@@ -1,4 +1,4 @@
PROCESSING_SUBSYSTEM(overlays) PROCESSING_SUBSYSTEM_DEF(overlays)
name = "Overlay" name = "Overlay"
flags = SS_TICKER|SS_FIRE_IN_LOBBY flags = SS_TICKER|SS_FIRE_IN_LOBBY
wait = 1 wait = 1

View File

@@ -1,6 +1,6 @@
//Used to process objects. Fires once every second. //Used to process objects. Fires once every second.
SUBSYSTEM(processing) SUBSYSTEM_DEF(processing)
name = "Processing" name = "Processing"
priority = 25 priority = 25
flags = SS_BACKGROUND|SS_POST_FIRE_TIMING|SS_NO_INIT flags = SS_BACKGROUND|SS_POST_FIRE_TIMING|SS_NO_INIT

View File

@@ -1,4 +1,4 @@
SUBSYSTEM(radio) SUBSYSTEM_DEF(radio)
name = "Radio" name = "Radio"
init_order = 18 init_order = 18
flags = SS_NO_FIRE|SS_NO_INIT flags = SS_NO_FIRE|SS_NO_INIT

View File

@@ -1,4 +1,4 @@
SUBSYSTEM(religion) SUBSYSTEM_DEF(religion)
name = "Religion" name = "Religion"
init_order = 19 init_order = 19
flags = SS_NO_FIRE|SS_NO_INIT flags = SS_NO_FIRE|SS_NO_INIT

View File

@@ -1,4 +1,4 @@
SUBSYSTEM(server_maint) SUBSYSTEM_DEF(server_maint)
name = "Server Tasks" name = "Server Tasks"
wait = 6000 wait = 6000
flags = SS_NO_TICK_CHECK flags = SS_NO_TICK_CHECK

View File

@@ -1,6 +1,6 @@
#define HIGHLIGHT_DYNAMIC_TRANSIT 1 #define HIGHLIGHT_DYNAMIC_TRANSIT 1
SUBSYSTEM(shuttle) SUBSYSTEM_DEF(shuttle)
name = "Shuttle" name = "Shuttle"
wait = 10 wait = 10
init_order = 3 init_order = 3

View File

@@ -1,4 +1,4 @@
SUBSYSTEM(spacedrift) SUBSYSTEM_DEF(spacedrift)
name = "Space Drift" name = "Space Drift"
priority = 30 priority = 30
wait = 5 wait = 5

View File

@@ -2,7 +2,7 @@
// because this is about placement of mice mobs, and nothing to do with // because this is about placement of mice mobs, and nothing to do with
// mice - the computer peripheral // mice - the computer peripheral
SUBSYSTEM(squeak) SUBSYSTEM_DEF(squeak)
name = "Squeak" name = "Squeak"
priority = 40 priority = 40
flags = SS_NO_FIRE flags = SS_NO_FIRE

View File

@@ -1,4 +1,4 @@
SUBSYSTEM(stickyban) SUBSYSTEM_DEF(stickyban)
name = "Sticky Ban" name = "Sticky Ban"
init_order = -10 init_order = -10
flags = SS_NO_FIRE flags = SS_NO_FIRE

View File

@@ -1,4 +1,4 @@
SUBSYSTEM(sun) SUBSYSTEM_DEF(sun)
name = "Sun" name = "Sun"
wait = 600 wait = 600
init_order = 2 init_order = 2

View File

@@ -1,4 +1,4 @@
SUBSYSTEM(tgui) SUBSYSTEM_DEF(tgui)
name = "tgui" name = "tgui"
wait = 9 wait = 9
init_order = 16 init_order = 16

View File

@@ -1,7 +1,7 @@
#define MAX_THROWING_DIST 512 // 2 z-levels on default width #define MAX_THROWING_DIST 512 // 2 z-levels on default width
#define MAX_TICKS_TO_MAKE_UP 3 //how many missed ticks will we attempt to make up for this run. #define MAX_TICKS_TO_MAKE_UP 3 //how many missed ticks will we attempt to make up for this run.
SUBSYSTEM(throwing) SUBSYSTEM_DEF(throwing)
name = "Throwing" name = "Throwing"
priority = 25 priority = 25
wait = 1 wait = 1

View File

@@ -2,7 +2,7 @@
var/round_start_time = 0 var/round_start_time = 0
SUBSYSTEM(ticker) SUBSYSTEM_DEF(ticker)
name = "Ticker" name = "Ticker"
init_order = 13 init_order = 13

View File

@@ -1,4 +1,4 @@
SUBSYSTEM(time_track) SUBSYSTEM_DEF(time_track)
name = "Time Tracking" name = "Time Tracking"
wait = 600 wait = 600
flags = SS_NO_INIT|SS_FIRE_IN_LOBBY flags = SS_NO_INIT|SS_FIRE_IN_LOBBY

View File

@@ -1,7 +1,7 @@
#define BUCKET_LEN (world.fps*1*60) //how many ticks should we keep in the bucket. (1 minutes worth) #define BUCKET_LEN (world.fps*1*60) //how many ticks should we keep in the bucket. (1 minutes worth)
#define BUCKET_POS(timer) (round((timer.timeToRun - SStimer.head_offset) / world.tick_lag) + 1) #define BUCKET_POS(timer) (round((timer.timeToRun - SStimer.head_offset) / world.tick_lag) + 1)
SUBSYSTEM(timer) SUBSYSTEM_DEF(timer)
name = "Timer" name = "Timer"
wait = 1 //SS_TICKER subsystem, so wait is in ticks wait = 1 //SS_TICKER subsystem, so wait is in ticks
init_order = 1 init_order = 1

View File

@@ -1,4 +1,4 @@
SUBSYSTEM(title) SUBSYSTEM_DEF(title)
name = "Title Screen" name = "Title Screen"
init_order = 15 init_order = 15
flags = SS_NO_FIRE flags = SS_NO_FIRE

View File

@@ -1,4 +1,4 @@
SUBSYSTEM(vote) SUBSYSTEM_DEF(vote)
name = "Vote" name = "Vote"
wait = 10 wait = 10

View File

@@ -1,6 +1,6 @@
//Used for all kinds of weather, ex. lavaland ash storms. //Used for all kinds of weather, ex. lavaland ash storms.
SUBSYSTEM(weather) SUBSYSTEM_DEF(weather)
name = "Weather" name = "Weather"
flags = SS_BACKGROUND flags = SS_BACKGROUND
wait = 10 wait = 10