ShowFactionIconsComponent.cs 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. using Content.Shared.StatusIcon;
  2. using Robust.Shared.GameStates;
  3. using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
  4. namespace Content.Shared.Overlays;
  5. /// <summary>
  6. /// This component allows you to see faction icons above mobs.
  7. /// </summary>
  8. [RegisterComponent, NetworkedComponent]
  9. public sealed partial class ShowFactionIconsComponent : Component
  10. {
  11. /// <summary>
  12. /// The faction icon to display
  13. /// </summary>
  14. [DataField("factionIcon", customTypeSerializer: typeof(PrototypeIdSerializer<FactionIconPrototype>))]
  15. public string FactionIcon = "HostileFaction";
  16. }
  17. [RegisterComponent, NetworkedComponent]
  18. public sealed partial class ShowEnglishFactionIconsComponent : Component
  19. {
  20. /// <summary>
  21. /// The faction icon to display
  22. /// </summary>
  23. [DataField("factionIcon", customTypeSerializer: typeof(PrototypeIdSerializer<FactionIconPrototype>))]
  24. public string FactionIcon = "EnglishFaction";
  25. }
  26. [RegisterComponent, NetworkedComponent]
  27. public sealed partial class ShowFrenchFactionIconsComponent : Component
  28. {
  29. /// <summary>
  30. /// The faction icon to display
  31. /// </summary>
  32. [DataField("factionIcon", customTypeSerializer: typeof(PrototypeIdSerializer<FactionIconPrototype>))]
  33. public string FactionIcon = "FrenchFaction";
  34. }
  35. [RegisterComponent, NetworkedComponent]
  36. public sealed partial class ShowGermanFactionIconsComponent : Component
  37. {
  38. /// <summary>
  39. /// The faction icon to display
  40. /// </summary>
  41. [DataField("factionIcon", customTypeSerializer: typeof(PrototypeIdSerializer<FactionIconPrototype>))]
  42. public string FactionIcon = "GermanFaction";
  43. }
  44. [RegisterComponent, NetworkedComponent]
  45. public sealed partial class ShowSovietFactionIconsComponent : Component
  46. {
  47. /// <summary>
  48. /// The faction icon to display
  49. /// </summary>
  50. [DataField("factionIcon", customTypeSerializer: typeof(PrototypeIdSerializer<FactionIconPrototype>))]
  51. public string FactionIcon = "SovietFaction";
  52. }