Gas analyzer compref removal (#17992)

* Gas analyzer compref removal

* don't question it
This commit is contained in:
Nemanja
2023-07-12 15:47:45 -04:00
committed by GitHub
parent 65d069a203
commit 37e6d99e49
7 changed files with 151 additions and 164 deletions

View File

@@ -1,30 +1,18 @@
using Content.Shared.Atmos.Components;
using Robust.Shared.Map;
namespace Content.Server.Atmos.Components;
namespace Content.Server.Atmos.Components
/// <summary>
/// Used to keep track of which analyzers are active for update purposes
/// </summary>
[RegisterComponent]
public sealed class ActiveGasAnalyzerComponent : Component
{
[RegisterComponent]
[ComponentReference(typeof(SharedGasAnalyzerComponent))]
public sealed class GasAnalyzerComponent : SharedGasAnalyzerComponent
{
[ViewVariables] public EntityUid? Target;
[ViewVariables] public EntityUid User;
[ViewVariables] public EntityCoordinates? LastPosition;
[ViewVariables] public bool Enabled;
}
// Set to a tiny bit after the default because otherwise the user often gets a blank window when first using
[DataField("accumulatedFrameTime"), ViewVariables(VVAccess.ReadWrite)]
public float AccumulatedFrametime = 2.01f;
/// <summary>
/// Used to keep track of which analyzers are active for update purposes
/// How often to update the analyzer
/// </summary>
[RegisterComponent]
public sealed class ActiveGasAnalyzerComponent : Component
{
// Set to a tiny bit after the default because otherwise the user often gets a blank window when first using
public float AccumulatedFrametime = 2.01f;
/// <summary>
/// How often to update the analyzer
/// </summary>
public float UpdateInterval = 1f;
}
[DataField("updateInterval"), ViewVariables(VVAccess.ReadWrite)]
public float UpdateInterval = 1f;
}