From b55fb8f2d4e4ee8035e9b56d55bb785c3e157b08 Mon Sep 17 00:00:00 2001 From: Leshana Date: Mon, 22 Jun 2020 16:08:45 -0400 Subject: [PATCH] Support actual VGS environment management. - Extends VGS DMAPI to include Reboot and Init Complete messages. - Add pid file and symlinked datafolder to git ignore. --- .gitignore | 2 ++ code/modules/tgs/v5/api_vgs.dm | 14 ++++++++++++++ 2 files changed, 16 insertions(+) diff --git a/.gitignore b/.gitignore index af769434e2..2e9c7f68b7 100644 --- a/.gitignore +++ b/.gitignore @@ -10,6 +10,8 @@ vchat.db* *.backup *.before *.pyc +*.pid +data data/ cfg/ diff --git a/code/modules/tgs/v5/api_vgs.dm b/code/modules/tgs/v5/api_vgs.dm index aa43a1655f..fd94e964d1 100644 --- a/code/modules/tgs/v5/api_vgs.dm +++ b/code/modules/tgs/v5/api_vgs.dm @@ -36,6 +36,20 @@ GLOBAL_DATUM(vgs, /datum/tgs_api) if(result != TGS_UNIMPLEMENTED) return result +/world/TgsReboot() + var/datum/tgs_api/api = GLOB.vgs + if(api) + api.OnReboot() + else + return ..() + +/world/TgsInitializationComplete() + var/datum/tgs_api/api = GLOB.vgs + if(api) + api.OnInitializationComplete() + else + return ..() + /world/proc/VgsAddMemberRole(chat_user_id) var/datum/tgs_api/v5/vgs1/api = GLOB.vgs if(api)