1
0

StatusIconComponent.cs 933 B

123456789101112131415161718192021222324252627
  1. using Robust.Shared.GameStates;
  2. namespace Content.Shared.StatusIcon.Components;
  3. /// <summary>
  4. /// This is used for noting if an entity is able to
  5. /// have StatusIcons displayed on them and inherent icons. (debug purposes)
  6. /// </summary>
  7. [RegisterComponent, NetworkedComponent, AutoGenerateComponentState, Access(typeof(SharedStatusIconSystem))]
  8. public sealed partial class StatusIconComponent : Component
  9. {
  10. /// <summary>
  11. /// Optional bounds for where the icons are laid out.
  12. /// If null, the sprite bounds will be used.
  13. /// </summary>
  14. [AutoNetworkedField]
  15. [DataField("bounds"), ViewVariables(VVAccess.ReadWrite)]
  16. public Box2? Bounds;
  17. }
  18. /// <summary>
  19. /// Event raised directed on an entity CLIENT-SIDE ONLY
  20. /// in order to get what status icons an entity has.
  21. /// </summary>
  22. /// <param name="StatusIcons"></param>
  23. [ByRefEvent]
  24. public record struct GetStatusIconsEvent(List<StatusIconData> StatusIcons);