mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 10:21:18 +03:00
* Make StationRecords YAML savable * Update SharedStationRecordsSystem.cs * Predict Station Records * Attribute subs, query Resolve & DirtyFields * Cleanup, prediction fixes, locale fixes * Update GeneralRecordsUi.cs Remove GeneralStationRecordConsoleState and obsolete SelectStationRecord
45 lines
1.3 KiB
C#
45 lines
1.3 KiB
C#
using Content.Shared.Security;
|
|
using Content.Shared.StationRecords;
|
|
using Robust.Shared.Serialization;
|
|
|
|
namespace Content.Shared.CriminalRecords;
|
|
|
|
/// <summary>
|
|
/// Criminal record for a crewmember.
|
|
/// Can be viewed and edited in a criminal records console by security.
|
|
/// </summary>
|
|
[Serializable, NetSerializable]
|
|
public sealed partial record CriminalRecord : StationRecord
|
|
{
|
|
/// <summary>
|
|
/// Status of the person (None, Wanted, Detained).
|
|
/// </summary>
|
|
[DataField]
|
|
public SecurityStatus Status = SecurityStatus.None;
|
|
|
|
/// <summary>
|
|
/// When Status is Wanted, the reason for it.
|
|
/// Should never be set otherwise.
|
|
/// </summary>
|
|
[DataField]
|
|
public string? Reason;
|
|
|
|
/// <summary>
|
|
/// The name of the person who changed the status.
|
|
/// </summary>
|
|
[DataField]
|
|
public string? InitiatorName;
|
|
|
|
/// <summary>
|
|
/// Criminal history of the person.
|
|
/// This should have charges and time served added after someone is detained.
|
|
/// </summary>
|
|
[DataField]
|
|
public List<CrimeHistory> History = new();
|
|
}
|
|
|
|
/// <summary>
|
|
/// A line of criminal activity and the time it was added at.
|
|
/// </summary>
|
|
[Serializable, NetSerializable]
|
|
public record struct CrimeHistory(TimeSpan AddTime, string Crime, string? InitiatorName);
|