LabelComponent.cs 826 B

1234567891011121314151617181920212223
  1. using Robust.Shared.GameStates;
  2. namespace Content.Shared.Labels.Components;
  3. /// <summary>
  4. /// Makes entities have a label in their name. Labels are normally given by <see cref="HandLabelerComponent"/>
  5. /// </summary>
  6. [RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
  7. public sealed partial class LabelComponent : Component
  8. {
  9. /// <summary>
  10. /// Current text on the label. If set before map init, during map init this string will be localized.
  11. /// This permits localized preset labels with fallback to the text written on the label.
  12. /// </summary>
  13. [DataField, AutoNetworkedField]
  14. public string? CurrentLabel { get; set; }
  15. /// <summary>
  16. /// Should the label show up in the examine menu?
  17. /// </summary>
  18. [DataField, AutoNetworkedField]
  19. public bool Examinable = true;
  20. }