TextScreenTimerComponent.cs 546 B

1234567891011121314
  1. using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom;
  2. namespace Content.Client.TextScreen;
  3. /// <summary>
  4. /// Added to an entity already containing a <see cref="TextScreenVisualsComponent"/> to track frame-by-frame timer updates
  5. /// </summary>
  6. [RegisterComponent]
  7. public sealed partial class TextScreenTimerComponent : Component
  8. {
  9. [DataField("targetTime", customTypeSerializer: typeof(TimeOffsetSerializer))]
  10. public TimeSpan Target = TimeSpan.Zero;
  11. public Dictionary<string, string?> LayerStatesToDraw = new();
  12. }