Gas analyzer compref removal (#17992)
* Gas analyzer compref removal * don't question it
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user