Skip to content

Commit 53469f8

Browse files
Update TGS DMAPI (#1087)
Co-authored-by: tgstation-server <[email protected]>
1 parent eb0fb22 commit 53469f8

File tree

5 files changed

+7
-4
lines changed

5 files changed

+7
-4
lines changed

code/__DEFINES/tgs.dm

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// tgstation-server DMAPI
22
// The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in IETF RFC 2119.
33

4-
#define TGS_DMAPI_VERSION "7.2.1"
4+
#define TGS_DMAPI_VERSION "7.3.0"
55

66
// All functions and datums outside this document are subject to change with any version and should not be relied on.
77

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"5.9.0"
1+
"5.10.0"

code/modules/tgs/v5/_defines.dm

+1
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@
9595
#define DMAPI5_TOPIC_PARAMETER_NEW_SERVER_VERSION "newServerVersion"
9696
#define DMAPI5_TOPIC_PARAMETER_BROADCAST_MESSAGE "broadcastMessage"
9797

98+
#define DMAPI5_TOPIC_RESPONSE_CLIENT_COUNT "clientCount"
9899
#define DMAPI5_TOPIC_RESPONSE_COMMAND_RESPONSE "commandResponse"
99100
#define DMAPI5_TOPIC_RESPONSE_COMMAND_RESPONSE_MESSAGE "commandResponseMessage"
100101
#define DMAPI5_TOPIC_RESPONSE_CHAT_RESPONSES "chatResponses"

code/modules/tgs/v5/topic.dm

+3-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,9 @@
149149
if(DMAPI5_TOPIC_COMMAND_HEALTHCHECK)
150150
if(event_handler && event_handler.receive_health_checks)
151151
event_handler.HandleEvent(TGS_EVENT_HEALTH_CHECK)
152-
return TopicResponse()
152+
var/list/health_check_response = TopicResponse()
153+
health_check_response[DMAPI5_TOPIC_RESPONSE_CLIENT_COUNT] = TGS_CLIENT_COUNT
154+
return health_check_response;
153155

154156
if(DMAPI5_TOPIC_COMMAND_WATCHDOG_REATTACH)
155157
detached = FALSE

code/modules/tgs/v5/undefs.dm

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818

1919
#undef DMAPI5_PARAMETER_ACCESS_IDENTIFIER
2020
#undef DMAPI5_PARAMETER_CUSTOM_COMMANDS
21-
#undef DMAPI5_PARAMETER_TOPIC_PORT
2221

2322
#undef DMAPI5_CHUNK
2423
#undef DMAPI5_CHUNK_PAYLOAD
@@ -95,6 +94,7 @@
9594
#undef DMAPI5_TOPIC_PARAMETER_NEW_SERVER_VERSION
9695
#undef DMAPI5_TOPIC_PARAMETER_BROADCAST_MESSAGE
9796

97+
#undef DMAPI5_TOPIC_RESPONSE_CLIENT_COUNT
9898
#undef DMAPI5_TOPIC_RESPONSE_COMMAND_RESPONSE
9999
#undef DMAPI5_TOPIC_RESPONSE_COMMAND_RESPONSE_MESSAGE
100100
#undef DMAPI5_TOPIC_RESPONSE_CHAT_RESPONSES

0 commit comments

Comments
 (0)