code/__DEFINES/tgs.dm
TGS_EVENT_REBOOT_MODE_CHANGE | Create this define if you want to do TGS configuration outside of this file. 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_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_BYOND_INSTALL_START | Before a BYOND install operation begins. Parameters: /datum/tgs_version of the installing BYOND |
TGS_EVENT_BYOND_INSTALL_FAIL | When a BYOND install operation fails. Parameters: Error message |
TGS_EVENT_BYOND_ACTIVE_VERSION_CHANGE | When the active BYOND version changes. Parameters: (Nullable) /datum/tgs_version of the current BYOND, /datum/tgs_version of the new BYOND |
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_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_TOPIC | Put this 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_chat_command | User definable chat command |
Define Details
TGS_EVENT_BYOND_ACTIVE_VERSION_CHANGE
When the active BYOND version changes. Parameters: (Nullable) /datum/tgs_version of the current BYOND, /datum/tgs_version of the new BYOND
TGS_EVENT_BYOND_INSTALL_FAIL
When a BYOND install operation fails. Parameters: Error message
TGS_EVENT_BYOND_INSTALL_START
Before a BYOND install operation begins. Parameters: /datum/tgs_version of the installing BYOND
TGS_EVENT_COMPILE_CANCELLED
When a compile is cancelled. No parameters
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_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_START
When the compiler starts running. Parameters: Game directory path, origin commit SHA
TGS_EVENT_DEPLOYMENT_COMPLETE
When a deployment completes. No Parameters
TGS_EVENT_INSTANCE_AUTO_UPDATE_START
When an automatic update for the current instance begins. No parameters
TGS_EVENT_INSTANCE_RENAMED
Before the instance is renamed, extra parameter is the new name
TGS_EVENT_PORT_SWAP
Before a port change is about to happen, extra parameters is new port
TGS_EVENT_REBOOT_MODE_CHANGE
Create this define if you want to do TGS configuration outside of this file. Before a reboot mode change, extras parameters are the current and new reboot mode enums
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_CONFLICT
When the repository encounters a merge conflict: Parameters: Base SHA, target SHA, base reference, target reference
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_REPO_RESET_ORIGIN
When the repository is reset to its origin reference. Parameters: Reference name, Commit SHA
TGS_EVENT_WATCHDOG_DETACH
Before the watchdog detaches for a TGS update/restart. No parameters.
TGS_EVENT_WATCHDOG_REATTACH
After the watchdog reattaches to DD, extra parameter is the new /datum/tgs_version of the server
TGS_EVENT_WATCHDOG_SHUTDOWN
Before the watchdog shuts down. Not sent for graceful shutdowns. No parameters.
TGS_EVENT_WORLD_PRIME
Watchdog event when TgsInitializationComplete() is called. No parameters.
TGS_REBOOT_MODE_NORMAL
The server will reboot normally.
TGS_REBOOT_MODE_RESTART
The watchdog will restart on reboot.
TGS_REBOOT_MODE_SHUTDOWN
The server will stop running on reboot.
TGS_SECURITY_SAFE
DreamDaemon Safe security level.
TGS_SECURITY_TRUSTED
DreamDaemon Trusted security level.
TGS_SECURITY_ULTRASAFE
DreamDaemon Ultrasafe security level.
TGS_TOPIC
Put this at the start of [/world/proc/Topic].