2025-07-18 20:59:49 +02:00
|
|
|
using Robust.Shared.Prototypes;
|
2022-02-14 19:41:08 -07:00
|
|
|
|
|
|
|
|
namespace Content.Shared.NameIdentifier;
|
|
|
|
|
|
2025-03-19 14:30:31 -04:00
|
|
|
[Prototype]
|
2023-11-01 19:56:23 -07:00
|
|
|
public sealed partial class NameIdentifierGroupPrototype : IPrototype
|
2022-02-14 19:41:08 -07:00
|
|
|
{
|
2023-01-19 03:56:45 +01:00
|
|
|
[IdDataField]
|
2023-08-22 18:14:33 -07:00
|
|
|
public string ID { get; private set; } = default!;
|
2022-02-14 19:41:08 -07:00
|
|
|
|
|
|
|
|
/// <summary>
|
2025-07-18 20:59:49 +02:00
|
|
|
/// Should the identifier become the full name, or just append?
|
2022-02-14 19:41:08 -07:00
|
|
|
/// </summary>
|
2025-07-18 20:59:49 +02:00
|
|
|
[DataField]
|
2022-02-14 19:41:08 -07:00
|
|
|
public bool FullName = false;
|
|
|
|
|
|
2025-07-18 20:59:49 +02:00
|
|
|
/// <summary>
|
|
|
|
|
/// Optional format identifier. If set, the name will be formatted using it (e.g., "MK-500").
|
|
|
|
|
/// If not set, only the numeric part will be used (e.g., "500").
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataField]
|
|
|
|
|
public LocId? Format;
|
2022-02-14 19:41:08 -07:00
|
|
|
|
2025-07-18 20:59:49 +02:00
|
|
|
/// <summary>
|
|
|
|
|
/// The maximal value appearing in an identifier.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataField]
|
2023-05-02 02:56:44 +10:00
|
|
|
public int MaxValue = 1000;
|
2022-02-14 19:41:08 -07:00
|
|
|
|
2025-07-18 20:59:49 +02:00
|
|
|
/// <summary>
|
|
|
|
|
/// The minimal value appearing in an identifier.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataField]
|
2022-02-14 19:41:08 -07:00
|
|
|
public int MinValue = 0;
|
|
|
|
|
}
|