Implements TGS3 API (#4800)

Since TGS3 is much-much-muuuuch gooder than my Python server monitor, it will be worth migrating there.
This commit is contained in:
Erki
2018-07-22 21:11:40 +03:00
committed by GitHub
parent a031f27102
commit b9e981e0b8
13 changed files with 836 additions and 7 deletions

View File

@@ -124,7 +124,7 @@ var/CURRENT_TICKLIMIT = TICK_LIMIT_RUNNING
msg = "The [BadBoy.name] subsystem seems to be destabilizing the MC and will be offlined."
BadBoy.flags |= SS_NO_FIRE
if(msg)
admin_notice("<span class='danger'>[msg]</span>", R_DEBUG | R_DEV)
admin_notice("<span class='danger'>[msg]</span>", R_DEBUG | R_DEV)
log_mc(msg)
if (istype(Master.subsystems))
@@ -180,8 +180,12 @@ var/CURRENT_TICKLIMIT = TICK_LIMIT_RUNNING
#ifndef UNIT_TEST
world.sleep_offline = 1
#endif
world.TgsInitializationComplete()
world.tick_lag = config.Ticklag
var/initialized_tod = REALTIMEOFDAY
sleep(1)
initializations_finished_with_no_players_logged_in = initialized_tod < REALTIMEOFDAY - 10
// Loop.
@@ -440,7 +444,7 @@ var/CURRENT_TICKLIMIT = TICK_LIMIT_RUNNING
if (!(queue_node_flags & SS_TICKER))
ran_non_ticker = TRUE
ran = TRUE
queue_node_paused = (queue_node.state == SS_PAUSED || queue_node.state == SS_PAUSING)
last_type_processed = queue_node