clean up a bunch of R&D code (#13071)

* clean up a bunch of R&D code

* don't store components

* brug

* speedrun some sloth review
This commit is contained in:
Nemanja
2022-12-19 16:14:02 -05:00
committed by GitHub
parent f78dca8504
commit 0549b22cbc
12 changed files with 159 additions and 143 deletions

View File

@@ -1,24 +1,12 @@
namespace Content.Server.Research.Components
{
[RegisterComponent]
public sealed class ResearchPointSourceComponent : ResearchClientComponent
public sealed class ResearchPointSourceComponent : Component
{
[DataField("pointspersecond")]
private int _pointsPerSecond;
[DataField("active")]
private bool _active;
[ViewVariables(VVAccess.ReadWrite)]
public int PointsPerSecond
{
get => _pointsPerSecond;
set => _pointsPerSecond = value;
}
[DataField("pointspersecond"), ViewVariables(VVAccess.ReadWrite)]
public int PointsPerSecond;
[ViewVariables(VVAccess.ReadWrite)]
public bool Active
{
get => _active;
set => _active = value;
}
[DataField("active"), ViewVariables(VVAccess.ReadWrite)]
public bool Active;
}
}