mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-10-05 13:57:29 +00:00
Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>
27 lines
809 B
C#
27 lines
809 B
C#
using Robust.Shared.GameStates;
|
|
using Robust.Shared.Prototypes;
|
|
|
|
namespace Content.Shared.NameIdentifier;
|
|
|
|
/// <summary>
|
|
/// Generates a unique numeric identifier for entities, with specifics controlled by a <see cref="NameIdentifierGroupPrototype"/>.
|
|
/// </summary>
|
|
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
|
|
public sealed partial class NameIdentifierComponent : Component
|
|
{
|
|
[DataField]
|
|
public ProtoId<NameIdentifierGroupPrototype>? Group;
|
|
|
|
/// <summary>
|
|
/// The randomly generated ID for this entity.
|
|
/// </summary>
|
|
[DataField, AutoNetworkedField]
|
|
public int Identifier = -1;
|
|
|
|
/// <summary>
|
|
/// The full name identifier for this entity.
|
|
/// </summary>
|
|
[DataField, AutoNetworkedField]
|
|
public string FullIdentifier = string.Empty;
|
|
}
|