Add code to enable communication with VGS

VGS provides a subset of TGS functionality, mostly just the discord bot.  It extends TGS datums and adds a little bit.
Right now its done in parallel to TGS's code to minimize impact of not having the rest of DMAPI v5 impemented.
This commit is contained in:
Leshana
2020-05-24 02:10:54 -04:00
parent 172bfaf9ac
commit 8a21fc2e6c
9 changed files with 99 additions and 1 deletions

View File

@@ -276,6 +276,9 @@ var/list/gamemode_cache = list()
// whether or not to use the nightshift subsystem to perform lighting changes
var/static/enable_night_shifts = FALSE
var/static/vgs_access_identifier = null // VOREStation Edit - VGS
var/static/vgs_server_port = null // VOREStation Edit - VGS
/datum/configuration/New()
var/list/L = typesof(/datum/game_mode) - /datum/game_mode
@@ -906,6 +909,13 @@ var/list/gamemode_cache = list()
if("enable_night_shifts")
config.enable_night_shifts = TRUE
// VOREStation Edit Start - Can't be in _vr file because it is loaded too late.
if("vgs_access_identifier")
config.vgs_access_identifier = value
if("vgs_server_port")
config.vgs_server_port = text2num(value)
// VOREStation Edit End
else
log_misc("Unknown setting in configuration: '[name]'")