using Robust.Shared.GameStates; using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype; namespace Content.Shared.NameIdentifier; /// /// Generates a unique numeric identifier for entities, with specifics controlled by a . /// [RegisterComponent, NetworkedComponent, AutoGenerateComponentState] public sealed partial class NameIdentifierComponent : Component { [DataField("group", required: true, customTypeSerializer:typeof(PrototypeIdSerializer))] public string Group = string.Empty; /// /// The randomly generated ID for this entity. /// [DataField("identifier"), ViewVariables(VVAccess.ReadWrite), AutoNetworkedField] public int Identifier = -1; /// /// The full name identifier for this entity. /// [DataField("fullIdentifier"), ViewVariables(VVAccess.ReadWrite), AutoNetworkedField] public string FullIdentifier = string.Empty; }