ArtifactTimerTriggerComponent.cs 670 B

123456789101112131415161718192021
  1. namespace Content.Server.Xenoarchaeology.XenoArtifacts.Triggers.Components;
  2. /// <summary>
  3. /// Will try to activate artifact periodically.
  4. /// Doesn't used for random artifacts, can be spawned by admins.
  5. /// </summary>
  6. [RegisterComponent]
  7. public sealed partial class ArtifactTimerTriggerComponent : Component
  8. {
  9. /// <summary>
  10. /// Time between artifact activation attempts.
  11. /// </summary>
  12. [DataField("rate")]
  13. [ViewVariables(VVAccess.ReadWrite)]
  14. public TimeSpan ActivationRate = TimeSpan.FromSeconds(5.0f);
  15. /// <summary>
  16. /// Last time when artifact was activated.
  17. /// </summary>
  18. public TimeSpan LastActivation;
  19. }