mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-19 06:03:14 +00:00
This pull request updates the TGS DMAPI to the latest version. Please note any changes that may be breaking or unimplemented in your codebase by checking what changes are in the definitions file: code/__DEFINES/tgs.dm before merging. Full changelog can be found [here](https://raw.githubusercontent.com/tgstation/tgstation-server/gh-pages/changelog.yml). - Added consumer APIs for overriding HTTP GET implementation. (https://github.com/tgstation/tgstation-server/pull/1853 @ Cyberboss) - Fixed Discord documentation links. (https://github.com/tgstation/tgstation-server/pull/1853 @ Cyberboss) - Use IETF RFC 2119 wording in documentation. (https://github.com/tgstation/tgstation-server/pull/1853 @ Cyberboss) - Populate some documentation comments for previously undocumented public entities. (https://github.com/tgstation/tgstation-server/pull/1853 @ Cyberboss) #tgs-dmapi-release Co-authored-by: tgstation-server-ci[bot] <161980869+tgstation-server-ci[bot]@ users.noreply.github.com>
75 lines
2.0 KiB
Plaintext
75 lines
2.0 KiB
Plaintext
TGS_DEFINE_AND_SET_GLOBAL(tgs, null)
|
|
|
|
/datum/tgs_api
|
|
var/datum/tgs_version/version
|
|
var/datum/tgs_event_handler/event_handler
|
|
|
|
var/list/warned_deprecated_command_runs
|
|
|
|
/datum/tgs_api/New(datum/tgs_event_handler/event_handler, datum/tgs_version/version, datum/tgs_http_handler/http_handler)
|
|
..()
|
|
src.event_handler = event_handler
|
|
src.version = version
|
|
|
|
/datum/tgs_api/proc/TerminateWorld()
|
|
while(TRUE)
|
|
TGS_DEBUG_LOG("About to terminate world. Tick: [world.time], sleep_offline: [world.sleep_offline]")
|
|
world.sleep_offline = FALSE // https://www.byond.com/forum/post/2894866
|
|
del(world)
|
|
world.sleep_offline = FALSE // just in case, this is BYOND after all...
|
|
sleep(world.tick_lag)
|
|
TGS_DEBUG_LOG("BYOND DIDN'T TERMINATE THE WORLD!!! TICK IS: [world.time], sleep_offline: [world.sleep_offline]")
|
|
|
|
/datum/tgs_api/latest
|
|
parent_type = /datum/tgs_api/v5
|
|
|
|
TGS_PROTECT_DATUM(/datum/tgs_api)
|
|
|
|
/datum/tgs_api/proc/ApiVersion()
|
|
return TGS_UNIMPLEMENTED
|
|
|
|
/datum/tgs_api/proc/OnWorldNew(datum/tgs_event_handler/event_handler)
|
|
return TGS_UNIMPLEMENTED
|
|
|
|
/datum/tgs_api/proc/OnInitializationComplete()
|
|
return TGS_UNIMPLEMENTED
|
|
|
|
/datum/tgs_api/proc/OnTopic(T)
|
|
return TGS_UNIMPLEMENTED
|
|
|
|
/datum/tgs_api/proc/OnReboot()
|
|
return TGS_UNIMPLEMENTED
|
|
|
|
/datum/tgs_api/proc/InstanceName()
|
|
return TGS_UNIMPLEMENTED
|
|
|
|
/datum/tgs_api/proc/TestMerges()
|
|
return TGS_UNIMPLEMENTED
|
|
|
|
/datum/tgs_api/proc/EndProcess()
|
|
return TGS_UNIMPLEMENTED
|
|
|
|
/datum/tgs_api/proc/Revision()
|
|
return TGS_UNIMPLEMENTED
|
|
|
|
/datum/tgs_api/proc/ChatChannelInfo()
|
|
return TGS_UNIMPLEMENTED
|
|
|
|
/datum/tgs_api/proc/ChatBroadcast(message, list/channels)
|
|
return TGS_UNIMPLEMENTED
|
|
|
|
/datum/tgs_api/proc/ChatTargetedBroadcast(message, admin_only)
|
|
return TGS_UNIMPLEMENTED
|
|
|
|
/datum/tgs_api/proc/ChatPrivateMessage(message, datum/tgs_chat_user/user)
|
|
return TGS_UNIMPLEMENTED
|
|
|
|
/datum/tgs_api/proc/SecurityLevel()
|
|
return TGS_UNIMPLEMENTED
|
|
|
|
/datum/tgs_api/proc/Visibility()
|
|
return TGS_UNIMPLEMENTED
|
|
|
|
/datum/tgs_api/proc/TriggerEvent(event_name, list/parameters, wait_for_completion)
|
|
return FALSE
|