diff --git a/TGS.Server/InstanceConfig.cs b/TGS.Server/InstanceConfig.cs index 5705b4fe7a..e64f8edec3 100644 --- a/TGS.Server/InstanceConfig.cs +++ b/TGS.Server/InstanceConfig.cs @@ -147,164 +147,64 @@ namespace TGS.Server public ulong Version { get; protected set; } = CurrentVersion; /// - public string Name - { - get { return _name; } - set { _name = value; Save(); } - } - private string _name = "TG Station Server"; + public string Name { get; set; } = "TG Station Server"; /// - public bool Enabled - { - get { return _enabled; } - set { _enabled = value; Save(); } - } - private bool _enabled = true; + public bool Enabled { get; set; } = true; /// - public string ProjectName - { - get { return _projectname; } - set { _projectname = value; Save(); } - } - private string _projectname = "tgstation"; + public string ProjectName { get; set; } = "tgstation"; /// - public ushort Port - { - get { return _port; } - set { _port = value; Save(); } - } - private ushort _port = 1337; + public ushort Port { get; set; } = 1337; /// - public DreamDaemonSecurity Security - { - get { return _security; } - set { _security = value; Save(); } - } - private DreamDaemonSecurity _security = DreamDaemonSecurity.Trusted; + public DreamDaemonSecurity Security { get; set; } = DreamDaemonSecurity.Trusted; /// - public bool Autostart - { - get { return _autostart; } - set { _autostart = value; Save(); } - } - private bool _autostart = false; + public bool Autostart { get; set; } = false; /// - public bool Webclient - { - get { return _webclient; } - set { _webclient = value; Save(); } - } - private bool _webclient = false; + public bool Webclient { get; set; } = false; /// - public string CommitterName - { - get { return _committername; } - set { _committername = value; Save(); } - } - private string _committername = "tgstation-server"; + public string CommitterName { get; set; } = "tgstation-server"; /// - public string CommitterEmail - { - get { return _committeremail; } - set { _committeremail = value; Save(); } - } - private string _committeremail = "tgstation-server@tgstation13.org"; + public string CommitterEmail { get; set; } = "tgstation-server@tgstation13.org"; /// - public string ChatProviderData - { - get { return _chatproviderdata; } - set { _chatproviderdata = value; Save(); } - } - private string _chatproviderdata = Instance.UninitializedString; + public string ChatProviderData { get; set; } = Instance.UninitializedString; /// - public string ChatProviderEntropy - { - get { return _chatproviderentropy; } - set { _chatproviderentropy = value; Save(); } - } - private string _chatproviderentropy; - - /// - public bool ReattachRequired - { - get { return _reattachrequired; } - set { _reattachrequired = value; Save(); } - } - private bool _reattachrequired = false; + public string ChatProviderEntropy { get; set; } /// - public int ReattachProcessID - { - get { return _reattachprocessid; } - set { _reattachprocessid = value; Save(); } - } - private int _reattachprocessid; - - /// - public ushort ReattachPort - { - get { return _reattachport; } - set { _reattachport = value; Save(); } - } - private ushort _reattachport; - - /// - public string ReattachCommsKey - { - get { return _reattachcommskey; } - set { _reattachcommskey = value; Save(); } - } - private string _reattachcommskey; - - /// - public string ReattachAPIVersion - { - get { return _reattachapiversion; } - set { _reattachapiversion = value; Save(); } - } - private string _reattachapiversion; - - /// - public string AuthorizedUserGroupSID - { - get { return _authorizedusergroupsid; } - set { _authorizedusergroupsid = value; Save(); } - } - private string _authorizedusergroupsid = null; + public bool ReattachRequired { get; set; } = false; /// - public ulong AutoUpdateInterval - { - get { return _autoupdateinterval; } - set { _autoupdateinterval = value; Save(); } - } - private ulong _autoupdateinterval = 0; + public int ReattachProcessID { get; set; } /// - public bool PushTestmergeCommits - { - get { return _pushtestmergecommits; } - set { _pushtestmergecommits = value; Save(); } - } - private bool _pushtestmergecommits = false; + public ushort ReattachPort { get; set; } /// - public int ServerStartupTimeout - { - get { return _serverstartuptimeout; } - set { _serverstartuptimeout = value; Save(); } - } - private int _serverstartuptimeout = 60; + public string ReattachCommsKey { get; set; } + + /// + public string ReattachAPIVersion { get; set; } + + /// + public string AuthorizedUserGroupSID { get; set; } = null; + + /// + public ulong AutoUpdateInterval { get; set; } = 0; + + /// + public bool PushTestmergeCommits { get; set; } = false; + + /// + public int ServerStartupTimeout { get; set; } = 60; /// /// Construct a for a at