ArrivalsShuttleComponent.cs 819 B

12345678910111213141516171819202122232425
  1. using Content.Server.Shuttles.Systems;
  2. using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom;
  3. namespace Content.Server.Shuttles.Components;
  4. [RegisterComponent, Access(typeof(ArrivalsSystem)), AutoGenerateComponentPause]
  5. public sealed partial class ArrivalsShuttleComponent : Component
  6. {
  7. [DataField("station")]
  8. public EntityUid Station;
  9. [DataField("nextTransfer", customTypeSerializer: typeof(TimeOffsetSerializer))]
  10. [AutoPausedField]
  11. public TimeSpan NextTransfer;
  12. [DataField("nextArrivalsTime", customTypeSerializer: typeof(TimeOffsetSerializer))]
  13. public TimeSpan NextArrivalsTime;
  14. /// <summary>
  15. /// the first arrivals FTL originates from nullspace instead of the station
  16. /// </summary>
  17. [DataField("firstRun")]
  18. public bool FirstRun = true;
  19. }