NameModifierComponent.cs 638 B

1234567891011121314151617181920
  1. using Content.Shared.NameModifier.EntitySystems;
  2. using Robust.Shared.GameStates;
  3. namespace Content.Shared.NameModifier.Components;
  4. /// <summary>
  5. /// Used to manage modifiers on an entity's name and handle renaming in a way
  6. /// that survives being renamed by multiple systems.
  7. /// </summary>
  8. [RegisterComponent]
  9. [NetworkedComponent, AutoGenerateComponentState]
  10. [Access(typeof(NameModifierSystem))]
  11. public sealed partial class NameModifierComponent : Component
  12. {
  13. /// <summary>
  14. /// The entity's name without any modifiers applied.
  15. /// </summary>
  16. [DataField, AutoNetworkedField]
  17. public string BaseName = string.Empty;
  18. }