make name identifier prefix LocId (#39035)

This commit is contained in:
lzk
2025-07-18 20:59:49 +02:00
committed by GitHub
parent e7b68d9722
commit ffbc813179
4 changed files with 37 additions and 19 deletions

View File

@@ -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;
}