NanoTaskCartridgeComponent.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. using Content.Shared.CartridgeLoader.Cartridges;
  2. namespace Content.Shared.CartridgeLoader.Cartridges;
  3. /// <summary>
  4. /// Component that indicates a PDA cartridge as containing the NanoTask program
  5. /// </summary>
  6. [RegisterComponent, AutoGenerateComponentPause]
  7. public sealed partial class NanoTaskCartridgeComponent : Component
  8. {
  9. /// <summary>
  10. /// The list of tasks
  11. /// </summary>
  12. [DataField]
  13. public List<NanoTaskItemAndId> Tasks = new();
  14. /// <summary>
  15. /// counter for generating task IDs
  16. /// </summary>
  17. [DataField]
  18. public int Counter = 1;
  19. /// <summary>
  20. /// When the user can print again
  21. /// </summary>
  22. [DataField, AutoPausedField]
  23. public TimeSpan NextPrintAllowedAfter = TimeSpan.Zero;
  24. /// <summary>
  25. /// How long in between each time the user can print out a task
  26. /// </summary>
  27. [DataField]
  28. public TimeSpan PrintDelay = TimeSpan.FromSeconds(5);
  29. }
  30. /// <summary>
  31. /// Component attached to the PDA a NanoTask cartridge is inserted into for interaction handling
  32. /// </summary>
  33. [RegisterComponent]
  34. public sealed partial class NanoTaskInteractionComponent : Component
  35. {
  36. }