Files
crystall-punk-14/Content.Shared/NameIdentifier/NameIdentifierGroupPrototype.cs

36 lines
915 B
C#
Raw Normal View History

using Robust.Shared.Prototypes;
2022-02-14 19:41:08 -07:00
namespace Content.Shared.NameIdentifier;
[Prototype]
public sealed partial class NameIdentifierGroupPrototype : IPrototype
2022-02-14 19:41:08 -07:00
{
[IdDataField]
public string ID { get; private set; } = default!;
2022-02-14 19:41:08 -07:00
/// <summary>
/// Should the identifier become the full name, or just append?
2022-02-14 19:41:08 -07:00
/// </summary>
[DataField]
2022-02-14 19:41:08 -07:00
public bool FullName = false;
/// <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
/// <summary>
/// The maximal value appearing in an identifier.
/// </summary>
[DataField]
public int MaxValue = 1000;
2022-02-14 19:41:08 -07:00
/// <summary>
/// The minimal value appearing in an identifier.
/// </summary>
[DataField]
2022-02-14 19:41:08 -07:00
public int MinValue = 0;
}