make name identifier prefix LocId (#39035)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
using Robust.Shared.Prototypes;
|
||||
using Robust.Shared.Prototypes;
|
||||
|
||||
namespace Content.Shared.NameIdentifier;
|
||||
|
||||
@@ -9,17 +9,27 @@ public sealed partial class NameIdentifierGroupPrototype : IPrototype
|
||||
public string ID { get; private set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// Should the identifier become the full name, or just append?
|
||||
/// Should the identifier become the full name, or just append?
|
||||
/// </summary>
|
||||
[DataField("fullName")]
|
||||
[DataField]
|
||||
public bool FullName = false;
|
||||
|
||||
[DataField("prefix")]
|
||||
public string? Prefix;
|
||||
/// <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;
|
||||
|
||||
[DataField("maxValue")]
|
||||
/// <summary>
|
||||
/// The maximal value appearing in an identifier.
|
||||
/// </summary>
|
||||
[DataField]
|
||||
public int MaxValue = 1000;
|
||||
|
||||
[DataField("minValue")]
|
||||
/// <summary>
|
||||
/// The minimal value appearing in an identifier.
|
||||
/// </summary>
|
||||
[DataField]
|
||||
public int MinValue = 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user