SolutionInjectWhileEmbeddedComponent.cs 864 B

123456789101112131415161718192021222324
  1. using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom;
  2. namespace Content.Server.Chemistry.Components;
  3. /// <summary>
  4. /// Used for embeddable entities that should try to inject a
  5. /// contained solution into a target over time while they are embbeded into.
  6. /// </summary>
  7. [RegisterComponent, AutoGenerateComponentPause]
  8. public sealed partial class SolutionInjectWhileEmbeddedComponent : BaseSolutionInjectOnEventComponent {
  9. ///<summary>
  10. ///The time at which the injection will happen.
  11. ///</summary>
  12. [DataField(customTypeSerializer: typeof(TimeOffsetSerializer)), AutoPausedField]
  13. public TimeSpan NextUpdate;
  14. ///<summary>
  15. ///The delay between each injection in seconds.
  16. ///</summary>
  17. [DataField]
  18. public TimeSpan UpdateInterval = TimeSpan.FromSeconds(3);
  19. }