2022-02-14 19:41:08 -07:00
|
|
|
|
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;
|
2023-05-02 02:56:44 +10:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// The randomly generated ID for this entity.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[ViewVariables(VVAccess.ReadWrite), DataField("identifier")]
|
|
|
|
|
|
public int Identifier = -1;
|
2022-02-14 19:41:08 -07:00
|
|
|
|
}
|