Unique name identifiers (#6697)

This commit is contained in:
mirrorcult
2022-02-14 19:41:08 -07:00
committed by GitHub
parent 26e0abb460
commit 6bb32ce725
7 changed files with 170 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
using Robust.Shared.Prototypes;
namespace Content.Shared.NameIdentifier;
[Prototype("nameIdentifierGroup")]
public sealed class NameIdentifierGroupPrototype : IPrototype
{
[DataField("id", required: true)]
public string ID { get; } = default!;
/// <summary>
/// Should the identifier become the full name, or just append?
/// </summary>
[DataField("fullName")]
public bool FullName = false;
[DataField("prefix")]
public string? Prefix;
[DataField("maxValue")]
public int MaxValue = 999;
[DataField("minValue")]
public int MinValue = 0;
}