Adds AddRecord/AddRecordEntry to StationRecordsSystem (#11732)

* adds an API to add station records from StationRecordsSystem

* removes a lingering comment

* adds a comment to AddRecord

* Update Content.Server/StationRecords/Systems/StationRecordsSystem.cs

Co-authored-by: wrexbe <81056464+wrexbe@users.noreply.github.com>

Co-authored-by: wrexbe <81056464+wrexbe@users.noreply.github.com>
This commit is contained in:
Flipp Syder
2022-10-07 22:59:33 -07:00
committed by GitHub
parent 76d632a7df
commit 5e07e8f8a5
2 changed files with 43 additions and 5 deletions

View File

@@ -1,11 +1,11 @@
namespace Content.Server.StationRecords;
[Access(typeof(StationRecordsSystem))]
[RegisterComponent]
public sealed class StationRecordsComponent : Component
{
// Every single record in this station, by key.
// Essentially a columnar database, but I really suck
// at implementing that so
[ViewVariables]
public StationRecordSet Records = new();
[ViewVariables] public readonly StationRecordSet Records = new();
}