mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-30 16:39:21 +01:00
Fix DMAPI test build
This commit is contained in:
+5
-23
@@ -1,36 +1,18 @@
|
||||
/world/New()
|
||||
SERVER_TOOLS_ON_NEW
|
||||
world.log << "Service API Version: [SERVER_TOOLS_API_VERSION]"
|
||||
WaitForAPICompatResponse()
|
||||
TgsNew()
|
||||
TgsInitializationComplete()
|
||||
|
||||
/world/Topic(T, Addr, Master, Keys)
|
||||
SERVER_TOOLS_ON_TOPIC
|
||||
TGS_TOPIC
|
||||
|
||||
/world/Reboot(reason)
|
||||
SERVER_TOOLS_ON_REBOOT
|
||||
SERVER_TOOLS_REBOOT_BYOND(FALSE)
|
||||
TgsReboot()
|
||||
|
||||
/proc/message_admins(event)
|
||||
event = "Admins: [event]"
|
||||
world << event
|
||||
world.log << event
|
||||
|
||||
/proc/WaitForAPICompatResponse()
|
||||
set waitfor = FALSE
|
||||
sleep(50)
|
||||
if(!SERVER_TOOLS_PRESENT)
|
||||
world.log << "No running service detected"
|
||||
del(world)
|
||||
return
|
||||
world.log << "Running service version: [SERVER_TOOLS_VERSION]"
|
||||
var/list/prs = SERVER_TOOLS_PR_LIST
|
||||
for(var/I in prs)
|
||||
var/data = prs[I]
|
||||
world.log << "Testmerge: #[I]: [data["title"]] by [data["author"]] at commit [data["commit"]]"
|
||||
var/checks_complete = "Server tools API checks complete! Rebooting..."
|
||||
SERVER_TOOLS_CHAT_BROADCAST(checks_complete)
|
||||
SERVER_TOOLS_RELAY_BROADCAST(checks_complete)
|
||||
world.Reboot()
|
||||
|
||||
var/list/clients = list()
|
||||
|
||||
/client/New()
|
||||
|
||||
Reference in New Issue
Block a user