tgstation-server 6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
SwarmServer.cs
Go to the documentation of this file.
1using System;
2using System.ComponentModel.DataAnnotations;
3
5{
9 public abstract class SwarmServer
10 {
14 [Required]
15 public virtual Uri? Address { get; set; }
16
20 public virtual Uri? PublicAddress { get; set; }
21
25 [Required]
26 public string? Identifier { get; set; }
27
31 protected SwarmServer()
32 {
33 }
34
39 protected SwarmServer(SwarmServer copy)
40 {
41 if (copy == null)
42 {
43 throw new ArgumentNullException(nameof(copy));
44 }
45
46 Address = copy.Address;
49 }
50 }
51}
Information about a server in the swarm.
virtual ? Uri PublicAddress
The address the swarm server can be publically accessed.
SwarmServer()
Initializes a new instance of the SwarmServer class.
virtual ? Uri Address
The public address of the server.
SwarmServer(SwarmServer copy)
Initializes a new instance of the SwarmServer class.
string? Identifier
The server's identifier.
@ Required
DMAPI validation must suceed for the deployment to succeed.