GasAnalyzerComponent.cs 658 B

123456789101112131415161718
  1. namespace Content.Server.Atmos.Components;
  2. /// <summary>
  3. /// Used to keep track of which analyzers are active for update purposes
  4. /// </summary>
  5. [RegisterComponent]
  6. public sealed partial class ActiveGasAnalyzerComponent : Component
  7. {
  8. // Set to a tiny bit after the default because otherwise the user often gets a blank window when first using
  9. [DataField("accumulatedFrameTime"), ViewVariables(VVAccess.ReadWrite)]
  10. public float AccumulatedFrametime = 2.01f;
  11. /// <summary>
  12. /// How often to update the analyzer
  13. /// </summary>
  14. [DataField("updateInterval"), ViewVariables(VVAccess.ReadWrite)]
  15. public float UpdateInterval = 1f;
  16. }