tgstation-server 6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
Instance.cs
Go to the documentation of this file.
1using System.Collections.Generic;
2
4
6{
10 public sealed class Instance : Api.Models.Instance, ILegacyApiTransformable<InstanceResponse>
11 {
15 public const ushort DefaultChatBotLimit = 10;
16
21
26
31
35 public string? SwarmIdentifer { get; set; }
36
40 public ICollection<InstancePermissionSet> InstancePermissionSets { get; set; }
41
45 public ICollection<ChatBot> ChatSettings { get; set; }
46
50 public ICollection<RevisionInformation> RevisionInformations { get; set; }
51
55 public ICollection<Job> Jobs { get; set; }
56
60 public Instance()
61 {
62 InstancePermissionSets = new List<InstancePermissionSet>();
63 ChatSettings = new List<ChatBot>();
64 RevisionInformations = new List<RevisionInformation>();
65 Jobs = new List<Job>();
66 }
67
82 }
83}
virtual ? long Id
The ID of the entity.
Definition EntityId.cs:13
string? AutoStartCron
A cron expression indicating when the game server should start. Must be a valid 6 part cron schedule ...
Definition Instance.cs:58
ConfigurationType? ConfigurationType
If IConfigurationFiles can be used on the Instance.
Definition Instance.cs:29
bool? Online
If the Instance is online.
Definition Instance.cs:22
string? Path
The path to where the Instance is located. Can only be changed while the Instance is offline....
Definition Instance.cs:15
string? AutoUpdateCron
A cron expression indicating when auto-updates should trigger. Must be a valid 6 part cron schedule (...
Definition Instance.cs:44
ushort? ChatBotLimit
The maximum number of chat bots the Instance may contain.
Definition Instance.cs:50
string? AutoStopCron
A cron expression indicating when the game server should stop. Must be a valid 6 part cron schedule (...
Definition Instance.cs:66
uint? AutoUpdateInterval
The time interval in minutes the repository is automatically pulled and compiles. 0 disables.
Definition Instance.cs:36
virtual ? string Name
The name of the entity represented by the NamedEntity.
Represents an Api.Models.Instance in the database.
Definition Instance.cs:11
ICollection< InstancePermissionSet > InstancePermissionSets
The InstancePermissionSets in the Instance.
Definition Instance.cs:40
ICollection< Job > Jobs
The Jobs in the Instance.
Definition Instance.cs:55
ICollection< RevisionInformation > RevisionInformations
The RevisionInformations in the Instance.
Definition Instance.cs:50
const ushort DefaultChatBotLimit
Default for Api.Models.Instance.ChatBotLimit.
Definition Instance.cs:15
string? SwarmIdentifer
The Api.Models.Internal.SwarmServer.Identifier of the the server in the swarm this instance belongs t...
Definition Instance.cs:35
Instance()
Initializes a new instance of the Instance class.
Definition Instance.cs:60
ICollection< ChatBot > ChatSettings
The ChatBots for the Instance.
Definition Instance.cs:45
Represents a host-side model that may be transformed into a TApiModel .
ConfigurationType
The type of configuration allowed on an Instance.