SmokeAffectedComponent.cs 813 B

12345678910111213141516171819202122232425
  1. using Robust.Shared.GameStates;
  2. using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom;
  3. namespace Content.Shared.Chemistry.Components;
  4. /// <summary>
  5. /// This is used for entities which are currently being affected by smoke.
  6. /// Manages the gradual metabolism every second.
  7. /// </summary>
  8. [RegisterComponent, NetworkedComponent, AutoGenerateComponentPause]
  9. public sealed partial class SmokeAffectedComponent : Component
  10. {
  11. /// <summary>
  12. /// The time at which the next smoke metabolism will occur.
  13. /// </summary>
  14. [DataField(customTypeSerializer: typeof(TimeOffsetSerializer))]
  15. [AutoPausedField]
  16. public TimeSpan NextSecond;
  17. /// <summary>
  18. /// The smoke that is currently affecting this entity.
  19. /// </summary>
  20. [DataField]
  21. public EntityUid SmokeEntity;
  22. }