mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
Support actual VGS environment management.
- Extends VGS DMAPI to include Reboot and Init Complete messages. - Add pid file and symlinked datafolder to git ignore.
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -10,6 +10,8 @@ vchat.db*
|
|||||||
*.backup
|
*.backup
|
||||||
*.before
|
*.before
|
||||||
*.pyc
|
*.pyc
|
||||||
|
*.pid
|
||||||
|
data
|
||||||
data/
|
data/
|
||||||
cfg/
|
cfg/
|
||||||
|
|
||||||
|
|||||||
@@ -36,6 +36,20 @@ GLOBAL_DATUM(vgs, /datum/tgs_api)
|
|||||||
if(result != TGS_UNIMPLEMENTED)
|
if(result != TGS_UNIMPLEMENTED)
|
||||||
return result
|
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)
|
/world/proc/VgsAddMemberRole(chat_user_id)
|
||||||
var/datum/tgs_api/v5/vgs1/api = GLOB.vgs
|
var/datum/tgs_api/v5/vgs1/api = GLOB.vgs
|
||||||
if(api)
|
if(api)
|
||||||
|
|||||||
Reference in New Issue
Block a user