ShowFactionIconsComponent.cs 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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. }