mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-01-06 07:23:16 +00:00
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.
12 lines
726 B
Plaintext
12 lines
726 B
Plaintext
#define TGS_EXTERNAL_CONFIGURATION
|
|
#define TGS_DEFINE_AND_SET_GLOBAL(Name, Value) GLOBAL_VAR_INIT(##Name, ##Value); GLOBAL_PROTECT(##Name)
|
|
#define TGS_READ_GLOBAL(Name) GLOB.##Name
|
|
#define TGS_WRITE_GLOBAL(Name, Value) GLOB.##Name = ##Value
|
|
#define TGS_WORLD_ANNOUNCE(message) to_chat(world, "<span class='boldannounce'>[html_encode(##message)]</span>")
|
|
#define TGS_INFO_LOG(message) log_to_dd("TGS Info: [##message]")
|
|
#define TGS_WARNING_LOG(message) log_to_dd("TGS Warn: [##message]")
|
|
#define TGS_ERROR_LOG(message) log_to_dd("TGS Error: [##message]")
|
|
#define TGS_NOTIFY_ADMINS(event) message_admins(##event)
|
|
#define TGS_CLIENT_COUNT GLOB.clients.len
|
|
#define TGS_PROTECT_DATUM(Path) GENERAL_PROTECT_DATUM(##Path)
|