1
0

HudThemePrototype.cs 781 B

12345678910111213141516171819202122232425262728
  1. using Robust.Shared.Prototypes;
  2. namespace Content.Shared.HUD
  3. {
  4. [Prototype]
  5. public sealed partial class HudThemePrototype : IPrototype, IComparable<HudThemePrototype>
  6. {
  7. [DataField("name", required: true)]
  8. public string Name { get; private set; } = string.Empty;
  9. [IdDataField]
  10. public string ID { get; private set; } = string.Empty;
  11. [DataField("path", required: true)]
  12. public string Path { get; private set; } = string.Empty;
  13. /// <summary>
  14. /// An order for the themes to be displayed in the UI
  15. /// </summary>
  16. [DataField]
  17. public int Order = 0;
  18. public int CompareTo(HudThemePrototype? other)
  19. {
  20. return Order.CompareTo(other?.Order);
  21. }
  22. }
  23. }