Files
tgstation-server/TGServiceInterface/Enumerations.cs
T
Cyberboss 8db5ecb26d Heavy instancing work
Added InstanceRootCommand for blocking instance based commands if no
instance is chosen
CLI now prints the service version
Added service level CLI commands
Fixed Service.LockLoggingID
Added InstanceMetadata DataContract
Implemented Service.ListInstances
ExitCode is now set to int parent type
Fixed ConnectivityLevel flags
Optimized channel closing during instance switching
2017-10-31 16:55:01 -04:00

175 lines
3.5 KiB
C#

using System;
namespace TGServiceInterface
{
/// <summary>
/// Description of the connectivity level to an <see cref="Components.ITGInstance"/> or the <see cref="Components.ITGSService"/>
/// </summary>
[Flags]
public enum ConnectivityLevel
{
/// <summary>
/// The connection could not be made, either a communication error occurred or the specified <see cref="Components.ITGInstance"/> does not exist
/// </summary>
None = 0,
/// <summary>
/// The connection could be made
/// </summary>
Connected = 1,
/// <summary>
/// The connected user is authenticated
/// </summary>
Authenticated = 2 | Connected,
/// <summary>
/// The connected user is an administrator
/// </summary>
Administrator = 4 | Authenticated,
}
/// <summary>
/// The status of a BYOND update job
/// </summary>
public enum ByondStatus
{
/// <summary>
/// No byond update in progress
/// </summary>
Idle,
/// <summary>
/// Preparing to update
/// </summary>
Starting,
/// <summary>
/// Revision is downloading
/// </summary>
Downloading,
/// <summary>
/// Revision is deflating
/// </summary>
Staging,
/// <summary>
/// Revision is ready and waiting for DreamDaemon reboot
/// </summary>
Staged,
/// <summary>
/// Revision is being applied
/// </summary>
Updating,
}
/// <summary>
/// Type of byond version
/// </summary>
public enum ByondVersion
{
/// <summary>
/// The highest version from http://www.byond.com/download/build/LATEST/
/// </summary>
Latest,
/// <summary>
/// The version in the staging directory
/// </summary>
Staged,
/// <summary>
/// The installed version
/// </summary>
Installed,
}
/// <summary>
/// The type of chat provider
/// </summary>
public enum ChatProvider : int
{
/// <summary>
/// IRC chat provider
/// </summary>
IRC = 0,
/// <summary>
/// Discord chat provider
/// </summary>
Discord = 1,
}
/// <summary>
/// Supported irc permission modes
/// </summary>
public enum IRCMode : int
{
/// <summary>
/// +
/// </summary>
Voice,
/// <summary>
/// %
/// </summary>
Halfop,
/// <summary>
/// @
/// </summary>
Op,
/// <summary>
/// ~
/// </summary>
Owner,
}
/// <summary>
/// The status of the compiler
/// </summary>
public enum CompilerStatus
{
/// <summary>
/// Game folder is broken or does not exist
/// </summary>
Uninitialized,
/// <summary>
/// Game folder is being created
/// </summary>
Initializing,
/// <summary>
/// Game folder is setup, does not imply the dmb is compiled
/// </summary>
Initialized,
/// <summary>
/// Game is being compiled
/// </summary>
Compiling,
}
/// <summary>
/// The status of the DD instance
/// </summary>
public enum DreamDaemonStatus
{
/// <summary>
/// Server is not running
/// </summary>
Offline,
/// <summary>
/// Server is being rebooted
/// </summary>
HardRebooting,
/// <summary>
/// Server is running
/// </summary>
Online,
}
/// <summary>
/// DreamDaemon's security level
/// </summary>
public enum DreamDaemonSecurity
{
/// <summary>
/// Server is unrestricted in terms of file access and shell commands
/// </summary>
Trusted = 0,
/// <summary>
/// Server will not be able to run shell commands or access files outside it's working directory
/// </summary>
Safe,
/// <summary>
/// Server will not be able to run shell commands or access anything but temporary files
/// </summary>
Ultrasafe
}
}