HolidayVisualsComponent.cs 563 B

1234567891011121314151617
  1. using Robust.Shared.Prototypes;
  2. namespace Content.Server.Holiday;
  3. /// <summary>
  4. /// This is used for an entity that enables unique visuals on specified holidays.
  5. /// </summary>
  6. [RegisterComponent]
  7. public sealed partial class HolidayVisualsComponent : Component
  8. {
  9. /// <summary>
  10. /// A dictionary relating a generic key to a list of holidays.
  11. /// If any of the holidays are being celebrated, that key will be set for holiday visuals.
  12. /// </summary>
  13. [DataField]
  14. public Dictionary<string, List<ProtoId<HolidayPrototype>>> Holidays = new();
  15. }