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,11 @@
using Content.Shared.NameIdentifier;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
namespace Content.Server.NameIdentifier;
[RegisterComponent]
public sealed class NameIdentifierComponent : Component
{
[DataField("group", required: true, customTypeSerializer:typeof(PrototypeIdSerializer<NameIdentifierGroupPrototype>))]
public string Group = string.Empty;
}