6
2026-01-24 12:49:55 +03:00

31 lines
984 B
C#

using Content.Shared._NF.ShuttleRecords;
using Robust.Shared.GameStates;
namespace Content.Shared._NF.Shipyard.Components;
/// <summary>
/// Tied to an ID card when a ship is purchased. 1 ship per captain.
/// </summary>
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
[Access(typeof(SharedShipyardSystem), typeof(SharedShuttleRecordsSystem))]
public sealed partial class ShuttleDeedComponent : Component
{
public const int MaxNameLength = 30;
public const int MaxSuffixLength = 3 + 1 + 4; // 3 digits, dash, up to 4 letters - should be enough
[DataField, AutoNetworkedField]
public EntityUid? ShuttleUid = null;
[DataField, AutoNetworkedField]
public string? ShuttleName = "Unknown";
[DataField("shuttleSuffix"), AutoNetworkedField]
public string? ShuttleNameSuffix;
[DataField, AutoNetworkedField]
public string? ShuttleOwner = "Unknown";
[DataField, AutoNetworkedField]
public bool PurchasedWithVoucher;
}