2021-06-09 22:19:39 +02:00
|
|
|
namespace Content.Server.Research.Components
|
2019-09-03 22:51:19 +02:00
|
|
|
{
|
|
|
|
|
[RegisterComponent]
|
2022-02-16 00:23:23 -07:00
|
|
|
public sealed class ResearchServerComponent : Component
|
2019-09-03 22:51:19 +02:00
|
|
|
{
|
2020-01-17 15:34:40 +01:00
|
|
|
[ViewVariables(VVAccess.ReadWrite)] public string ServerName => _serverName;
|
2019-09-03 22:51:19 +02:00
|
|
|
|
2021-03-05 01:08:38 +01:00
|
|
|
[DataField("servername")]
|
2019-09-03 22:51:19 +02:00
|
|
|
private string _serverName = "RDSERVER";
|
|
|
|
|
|
2022-06-28 22:54:08 +10:00
|
|
|
[ViewVariables(VVAccess.ReadWrite)] [DataField("points")]
|
|
|
|
|
public int Points = 0;
|
2019-09-03 22:51:19 +02:00
|
|
|
|
2020-01-17 15:34:40 +01:00
|
|
|
[ViewVariables(VVAccess.ReadOnly)] public int Id { get; private set; }
|
2019-09-03 22:51:19 +02:00
|
|
|
|
|
|
|
|
[ViewVariables(VVAccess.ReadOnly)]
|
2020-11-27 11:00:49 +01:00
|
|
|
public List<ResearchPointSourceComponent> PointSources { get; } = new();
|
2020-01-17 15:34:40 +01:00
|
|
|
|
2019-09-03 22:51:19 +02:00
|
|
|
[ViewVariables(VVAccess.ReadOnly)]
|
2020-11-27 11:00:49 +01:00
|
|
|
public List<ResearchClientComponent> Clients { get; } = new();
|
2019-09-03 22:51:19 +02:00
|
|
|
}
|
|
|
|
|
}
|