code/__DEFINES/tgs.dm ![code/__DEFINES/tgs.dm0](git.png)
TGS_FILE2TEXT_NATIVE | Consumers SHOULD create this define if you want to do TGS configuration outside of this file. |
---|---|
TGS_EVENT_REBOOT_MODE_CHANGE | Before a reboot mode change, extras parameters are the current and new reboot mode enums. |
TGS_EVENT_PORT_SWAP | Before a port change is about to happen, extra parameters is new port. |
TGS_EVENT_INSTANCE_RENAMED | Before the instance is renamed, extra parameter is the new name. |
TGS_EVENT_WATCHDOG_REATTACH | After the watchdog reattaches to DD, extra parameter is the new /datum/tgs_version of the server. |
TGS_EVENT_HEALTH_CHECK | When the watchdog sends a health check to DD. No parameters. |
TGS_EVENT_REPO_RESET_ORIGIN | When the repository is reset to its origin reference. Parameters: Reference name, Commit SHA. |
TGS_EVENT_REPO_CHECKOUT | When the repository performs a checkout. Parameters: Checkout git object. |
TGS_EVENT_REPO_FETCH | When the repository performs a fetch operation. No parameters. |
TGS_EVENT_REPO_MERGE_PULL_REQUEST | When the repository test merges. Parameters: PR Number, PR Sha, (Nullable) Comment made by TGS user. |
TGS_EVENT_REPO_PRE_SYNCHRONIZE | Before the repository makes a sychronize operation. Parameters: Absolute repostiory path. |
TGS_EVENT_ENGINE_INSTALL_START | Before a engine install operation begins. Parameters: Version string of the installing engine. |
TGS_EVENT_ENGINE_INSTALL_FAIL | When a engine install operation fails. Parameters: Error message |
TGS_EVENT_ENGINE_ACTIVE_VERSION_CHANGE | When the active engine version changes. Parameters: (Nullable) Version string of the current engine, version string of the new engine. |
TGS_EVENT_COMPILE_START | When the compiler starts running. Parameters: Game directory path, origin commit SHA. |
TGS_EVENT_COMPILE_CANCELLED | When a compile is cancelled. No parameters. |
TGS_EVENT_COMPILE_FAILURE | When a compile fails. Parameters: Game directory path, [TRUE]/[FALSE] based on if the cause for failure was DMAPI validation. |
TGS_EVENT_COMPILE_COMPLETE | When a compile operation completes. Note, this event fires before the new .dmb is loaded into the watchdog. Consider using the TGS_EVENT_DEPLOYMENT_COMPLETE instead. Parameters: Game directory path. |
TGS_EVENT_INSTANCE_AUTO_UPDATE_START | When an automatic update for the current instance begins. No parameters. |
TGS_EVENT_REPO_MERGE_CONFLICT | When the repository encounters a merge conflict: Parameters: Base SHA, target SHA, base reference, target reference. |
TGS_EVENT_DEPLOYMENT_COMPLETE | When a deployment completes. No Parameters. |
TGS_EVENT_WATCHDOG_SHUTDOWN | Before the watchdog shuts down. Not sent for graceful shutdowns. No parameters. |
TGS_EVENT_WATCHDOG_DETACH | Before the watchdog detaches for a TGS update/restart. No parameters. |
TGS_EVENT_WORLD_PRIME | Watchdog event when TgsInitializationComplete() is called. No parameters. |
TGS_EVENT_REPO_SUBMODULE_UPDATE | After a single submodule update is performed. Parameters: Updated submodule name. |
TGS_EVENT_PRE_DREAM_MAKER | After CodeModifications are applied, before DreamMaker is run. Parameters: Game directory path, origin commit sha, version string of the used engine. |
TGS_EVENT_DEPLOYMENT_CLEANUP | Whenever a deployment folder is deleted from disk. Parameters: Game directory path. |
TGS_REBOOT_MODE_NORMAL | The server will reboot normally. |
TGS_REBOOT_MODE_SHUTDOWN | The server will stop running on reboot. |
TGS_REBOOT_MODE_RESTART | The watchdog will restart on reboot. |
TGS_SECURITY_TRUSTED | DreamDaemon Trusted security level. |
TGS_SECURITY_SAFE | DreamDaemon Safe security level. |
TGS_SECURITY_ULTRASAFE | DreamDaemon Ultrasafe security level. |
TGS_VISIBILITY_PUBLIC | DreamDaemon public visibility level. |
TGS_VISIBILITY_PRIVATE | DreamDaemon private visibility level. |
TGS_VISIBILITY_INVISIBLE | DreamDaemon invisible visibility level. |
TGS_ENGINE_TYPE_BYOND | The Build Your Own Net Dream engine. |
TGS_ENGINE_TYPE_OPENDREAM | The OpenDream engine. |
TGS_TOPIC | Consumers MUST run this macro at the start of [/world/proc/Topic]. |
/datum/tgs_revision_information | Represents git revision information. |
/datum/tgs_version | Represents a version. |
/datum/tgs_revision_information/test_merge | Represents a merge of a GitHub pull request. |
/datum/tgs_chat_channel | Represents a connected chat channel. |
/datum/tgs_event_handler | User definable handler for TGS events This abstract version SHOULD be overridden to be used. |
/datum/tgs_http_handler | User definable handler for HTTP calls. This abstract version MUST be overridden to be used. |
/datum/tgs_http_result | Result of a /datum/tgs_http_handler call. MUST NOT be overridden. |
/datum/tgs_chat_command | User definable chat command. This abstract version MUST be overridden to be used. |
/datum/tgs_message_content | User definable chat message. MUST NOT be overridden. |
/datum/tgs_chat_embed/structure | User definable chat embed. Currently mirrors Discord chat embeds. See https://discord.com/developers/docs/resources/message#embed-object for details. |
/datum/tgs_chat_embed/media | Common datum for similar Discord embed medias. |
/datum/tgs_chat_embed/footer | See https://discord.com/developers/docs/resources/message#embed-object-embed-footer-structure for details. |
/datum/tgs_chat_embed/provider | See https://discord.com/developers/docs/resources/message#embed-object-embed-provider-structure for details. |
/datum/tgs_chat_embed/provider/author | See https://discord.com/developers/docs/resources/message#embed-object-embed-author-structure for details. Must have name set in New(). |
/datum/tgs_chat_embed/field | See https://discord.com/developers/docs/resources/message#embed-object-embed-field-structure for details. |
Define Details
TGS_ENGINE_TYPE_BYOND ![code/__DEFINES/tgs.dm 154](git.png)
The Build Your Own Net Dream engine.
TGS_ENGINE_TYPE_OPENDREAM ![code/__DEFINES/tgs.dm 156](git.png)
The OpenDream engine.
TGS_EVENT_COMPILE_CANCELLED ![code/__DEFINES/tgs.dm 98](git.png)
When a compile is cancelled. No parameters.
TGS_EVENT_COMPILE_COMPLETE ![code/__DEFINES/tgs.dm 102](git.png)
When a compile operation completes. Note, this event fires before the new .dmb is loaded into the watchdog. Consider using the TGS_EVENT_DEPLOYMENT_COMPLETE instead. Parameters: Game directory path.
TGS_EVENT_COMPILE_FAILURE ![code/__DEFINES/tgs.dm 100](git.png)
When a compile fails. Parameters: Game directory path, [TRUE]/[FALSE] based on if the cause for failure was DMAPI validation.
TGS_EVENT_COMPILE_START ![code/__DEFINES/tgs.dm 96](git.png)
When the compiler starts running. Parameters: Game directory path, origin commit SHA.
TGS_EVENT_DEPLOYMENT_CLEANUP ![code/__DEFINES/tgs.dm 127](git.png)
Whenever a deployment folder is deleted from disk. Parameters: Game directory path.
TGS_EVENT_DEPLOYMENT_COMPLETE ![code/__DEFINES/tgs.dm 108](git.png)
When a deployment completes. No Parameters.
TGS_EVENT_ENGINE_ACTIVE_VERSION_CHANGE ![code/__DEFINES/tgs.dm 94](git.png)
When the active engine version changes. Parameters: (Nullable) Version string of the current engine, version string of the new engine.
TGS_EVENT_ENGINE_INSTALL_FAIL ![code/__DEFINES/tgs.dm 92](git.png)
When a engine install operation fails. Parameters: Error message
TGS_EVENT_ENGINE_INSTALL_START ![code/__DEFINES/tgs.dm 90](git.png)
Before a engine install operation begins. Parameters: Version string of the installing engine.
TGS_EVENT_HEALTH_CHECK ![code/__DEFINES/tgs.dm 77](git.png)
When the watchdog sends a health check to DD. No parameters.
TGS_EVENT_INSTANCE_AUTO_UPDATE_START ![code/__DEFINES/tgs.dm 104](git.png)
When an automatic update for the current instance begins. No parameters.
TGS_EVENT_INSTANCE_RENAMED ![code/__DEFINES/tgs.dm 73](git.png)
Before the instance is renamed, extra parameter is the new name.
TGS_EVENT_PORT_SWAP ![code/__DEFINES/tgs.dm 71](git.png)
Before a port change is about to happen, extra parameters is new port.
TGS_EVENT_PRE_DREAM_MAKER ![code/__DEFINES/tgs.dm 125](git.png)
After CodeModifications are applied, before DreamMaker is run. Parameters: Game directory path, origin commit sha, version string of the used engine.
TGS_EVENT_REBOOT_MODE_CHANGE ![code/__DEFINES/tgs.dm 69](git.png)
Before a reboot mode change, extras parameters are the current and new reboot mode enums.
TGS_EVENT_REPO_CHECKOUT ![code/__DEFINES/tgs.dm 82](git.png)
When the repository performs a checkout. Parameters: Checkout git object.
TGS_EVENT_REPO_FETCH ![code/__DEFINES/tgs.dm 84](git.png)
When the repository performs a fetch operation. No parameters.
TGS_EVENT_REPO_MERGE_CONFLICT ![code/__DEFINES/tgs.dm 106](git.png)
When the repository encounters a merge conflict: Parameters: Base SHA, target SHA, base reference, target reference.
TGS_EVENT_REPO_MERGE_PULL_REQUEST ![code/__DEFINES/tgs.dm 86](git.png)
When the repository test merges. Parameters: PR Number, PR Sha, (Nullable) Comment made by TGS user.
TGS_EVENT_REPO_PRE_SYNCHRONIZE ![code/__DEFINES/tgs.dm 88](git.png)
Before the repository makes a sychronize operation. Parameters: Absolute repostiory path.
TGS_EVENT_REPO_RESET_ORIGIN ![code/__DEFINES/tgs.dm 80](git.png)
When the repository is reset to its origin reference. Parameters: Reference name, Commit SHA.
TGS_EVENT_REPO_SUBMODULE_UPDATE ![code/__DEFINES/tgs.dm 123](git.png)
After a single submodule update is performed. Parameters: Updated submodule name.
TGS_EVENT_WATCHDOG_DETACH ![code/__DEFINES/tgs.dm 112](git.png)
Before the watchdog detaches for a TGS update/restart. No parameters.
TGS_EVENT_WATCHDOG_REATTACH ![code/__DEFINES/tgs.dm 75](git.png)
After the watchdog reattaches to DD, extra parameter is the new /datum/tgs_version of the server.
TGS_EVENT_WATCHDOG_SHUTDOWN ![code/__DEFINES/tgs.dm 110](git.png)
Before the watchdog shuts down. Not sent for graceful shutdowns. No parameters.
TGS_EVENT_WORLD_PRIME ![code/__DEFINES/tgs.dm 119](git.png)
Watchdog event when TgsInitializationComplete() is called. No parameters.
TGS_FILE2TEXT_NATIVE ![code/__DEFINES/tgs.dm 58](git.png)
Consumers SHOULD create this define if you want to do TGS configuration outside of this file.
TGS_REBOOT_MODE_NORMAL ![code/__DEFINES/tgs.dm 132](git.png)
The server will reboot normally.
TGS_REBOOT_MODE_RESTART ![code/__DEFINES/tgs.dm 136](git.png)
The watchdog will restart on reboot.
TGS_REBOOT_MODE_SHUTDOWN ![code/__DEFINES/tgs.dm 134](git.png)
The server will stop running on reboot.
TGS_SECURITY_SAFE ![code/__DEFINES/tgs.dm 142](git.png)
DreamDaemon Safe security level.
TGS_SECURITY_TRUSTED ![code/__DEFINES/tgs.dm 140](git.png)
DreamDaemon Trusted security level.
TGS_SECURITY_ULTRASAFE ![code/__DEFINES/tgs.dm 144](git.png)
DreamDaemon Ultrasafe security level.
TGS_TOPIC ![code/__DEFINES/tgs.dm 183](git.png)
Consumers MUST run this macro at the start of [/world/proc/Topic].
TGS_VISIBILITY_INVISIBLE ![code/__DEFINES/tgs.dm 151](git.png)
DreamDaemon invisible visibility level.
TGS_VISIBILITY_PRIVATE ![code/__DEFINES/tgs.dm 149](git.png)
DreamDaemon private visibility level.
TGS_VISIBILITY_PUBLIC ![code/__DEFINES/tgs.dm 147](git.png)
DreamDaemon public visibility level.