mirror of
https://github.com/Citadel-Station-13/Citadel-Station-13-RP.git
synced 2026-08-27 12:46:57 +01:00
processing subsystem update (#7489)
- processing subsystems now declare time as second intervals - adds missing stat tag - MC now respects abstract type for subsystems (even if we don't use it lol)
This commit is contained in:
@@ -6,6 +6,7 @@ PROCESSING_SUBSYSTEM_DEF(circuit)
|
||||
name = "Circuit"
|
||||
init_order = INIT_ORDER_CIRCUIT
|
||||
subsystem_flags = SS_NO_FIRE
|
||||
stat_tag = "P_CIRCUIT"
|
||||
|
||||
var/cipherkey
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@ PROCESSING_SUBSYSTEM_DEF(instruments)
|
||||
init_stage = INIT_STAGE_EARLY
|
||||
subsystem_flags = SS_KEEP_TIMING
|
||||
priority = FIRE_PRIORITY_INSTRUMENTS
|
||||
stat_tag = "P_INST"
|
||||
var/static/list/datum/instrument/instrument_data = list() //id = datum
|
||||
var/static/list/datum/song/songs = list()
|
||||
var/static/musician_maxlines = 600
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
PROCESSING_SUBSYSTEM_DEF(moving_cameras)
|
||||
name = "Camera Movement"
|
||||
wait = 5
|
||||
wait = 0.5 SECONDS
|
||||
stat_tag = "MCAM"
|
||||
|
||||
@@ -1,5 +1,9 @@
|
||||
/**
|
||||
* General object processing subsystem. Fires once per 2 seconds.
|
||||
*/
|
||||
PROCESSING_SUBSYSTEM_DEF(obj)
|
||||
name = "Objects"
|
||||
priority = FIRE_PRIORITY_OBJ
|
||||
subsystem_flags = SS_NO_INIT
|
||||
wait = 20
|
||||
wait = 2 SECONDS
|
||||
stat_tag = "P_OBJ"
|
||||
|
||||
@@ -3,5 +3,5 @@
|
||||
*/
|
||||
PROCESSING_SUBSYSTEM_DEF(process_20fps)
|
||||
name = "Processing - 20 fps"
|
||||
wait = 0.5
|
||||
stat_tag = "P20"
|
||||
wait = (1 / 20) SECONDS
|
||||
stat_tag = "P_20"
|
||||
|
||||
@@ -3,5 +3,5 @@
|
||||
*/
|
||||
PROCESSING_SUBSYSTEM_DEF(process_5fps)
|
||||
name = "Processing - 5 FPS"
|
||||
wait = 2
|
||||
stat_tag = "P5"
|
||||
wait = (1 / 5) SECONDS
|
||||
stat_tag = "P_5"
|
||||
|
||||
@@ -1,12 +1,13 @@
|
||||
//Used to process objects.
|
||||
|
||||
/**
|
||||
* Base of processing subsystems.
|
||||
* This is a generic processing subsystem that ticks once per second.
|
||||
*/
|
||||
SUBSYSTEM_DEF(processing)
|
||||
name = "Processing - 1 FPS"
|
||||
priority = FIRE_PRIORITY_PROCESS
|
||||
subsystem_flags = SS_BACKGROUND|SS_POST_FIRE_TIMING|SS_NO_INIT
|
||||
wait = 1 SECONDS
|
||||
|
||||
var/stat_tag = "P1" //Used for logging
|
||||
var/stat_tag = "P_DEF" //Used for logging
|
||||
var/list/processing = list()
|
||||
var/list/currentrun = list()
|
||||
|
||||
|
||||
@@ -1,7 +1,10 @@
|
||||
/**
|
||||
* A very fast-ticking subsystem that runs projectiles.
|
||||
*/
|
||||
PROCESSING_SUBSYSTEM_DEF(projectiles)
|
||||
name = "Projectiles"
|
||||
wait = 0.5
|
||||
stat_tag = "PP"
|
||||
wait = (1 / 20) SECONDS
|
||||
stat_tag = "P_PROJ"
|
||||
priority = FIRE_PRIORITY_PROJECTILES
|
||||
subsystem_flags = SS_NO_INIT | SS_KEEP_TIMING
|
||||
|
||||
|
||||
Reference in New Issue
Block a user