Remove redundant read-only VV from datafields (#12626)
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
using Content.Shared.Atmos;
|
||||
using Robust.Shared.Map;
|
||||
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom;
|
||||
|
||||
namespace Content.Server.Atmos.Components
|
||||
@@ -10,7 +9,6 @@ namespace Content.Server.Atmos.Components
|
||||
public (EntityUid Grid, Vector2i Tile) LastPosition { get; set; }
|
||||
|
||||
[DataField("airBlockedDirection", customTypeSerializer: typeof(FlagSerializer<AtmosDirectionFlags>))]
|
||||
[ViewVariables]
|
||||
public int InitialAirBlockedDirection { get; set; } = (int) AtmosDirection.All;
|
||||
|
||||
[ViewVariables]
|
||||
@@ -22,15 +20,12 @@ namespace Content.Server.Atmos.Components
|
||||
[DataField("fixVacuum")]
|
||||
public bool FixVacuum { get; set; } = true;
|
||||
|
||||
[ViewVariables]
|
||||
[DataField("rotateAirBlocked")]
|
||||
public bool RotateAirBlocked { get; set; } = true;
|
||||
|
||||
[ViewVariables]
|
||||
[DataField("fixAirBlockedDirectionInitialize")]
|
||||
public bool FixAirBlockedDirectionInitialize { get; set; } = true;
|
||||
|
||||
[ViewVariables]
|
||||
[DataField("noAirWhenFullyAirBlocked")]
|
||||
public bool NoAirWhenFullyAirBlocked { get; set; } = true;
|
||||
|
||||
|
||||
@@ -3,6 +3,6 @@
|
||||
[RegisterComponent]
|
||||
public sealed class GasMixtureHolderComponent : Component, IGasMixtureHolder
|
||||
{
|
||||
[ViewVariables] [DataField("air")] public GasMixture Air { get; set; } = new GasMixture();
|
||||
[DataField("air")] public GasMixture Air { get; set; } = new GasMixture();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -32,20 +32,18 @@ namespace Content.Server.Atmos.Components
|
||||
public IPlayingAudioStream? ConnectStream;
|
||||
public IPlayingAudioStream? DisconnectStream;
|
||||
|
||||
[DataField("air")] [ViewVariables] public GasMixture Air { get; set; } = new();
|
||||
[DataField("air")] public GasMixture Air { get; set; } = new();
|
||||
|
||||
/// <summary>
|
||||
/// Pressure at which tank should be considered 'low' such as for internals.
|
||||
/// </summary>
|
||||
[DataField("tankLowPressure")]
|
||||
[ViewVariables]
|
||||
public float TankLowPressure { get; set; } = DefaultLowPressure;
|
||||
|
||||
/// <summary>
|
||||
/// Distributed pressure.
|
||||
/// </summary>
|
||||
[DataField("outputPressure")]
|
||||
[ViewVariables]
|
||||
public float OutputPressure { get; set; } = DefaultOutputPressure;
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -13,7 +13,6 @@ namespace Content.Server.Atmos.Components
|
||||
/// <summary>
|
||||
/// Accumulates time when yeeted by high pressure deltas.
|
||||
/// </summary>
|
||||
[ViewVariables]
|
||||
[DataField("accumulator")]
|
||||
public float Accumulator = 0f;
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Linq;
|
||||
using System.Runtime.CompilerServices;
|
||||
using Content.Server.Atmos.EntitySystems;
|
||||
using Content.Server.Atmos.Reactions;
|
||||
using Content.Shared.Atmos;
|
||||
using Robust.Shared.Serialization;
|
||||
@@ -27,7 +26,6 @@ namespace Content.Server.Atmos
|
||||
private float _temperature = Atmospherics.TCMB;
|
||||
|
||||
[DataField("immutable")]
|
||||
[ViewVariables]
|
||||
public bool Immutable { get; private set; }
|
||||
|
||||
[ViewVariables]
|
||||
|
||||
@@ -5,7 +5,6 @@ namespace Content.Server.Atmos.Piping.Binary.Components
|
||||
[RegisterComponent]
|
||||
public sealed class GasValveComponent : Component
|
||||
{
|
||||
[ViewVariables]
|
||||
[DataField("open")]
|
||||
public bool Open { get; set; } = true;
|
||||
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
using Content.Server.Atmos.Components;
|
||||
using Robust.Shared.Map;
|
||||
|
||||
namespace Content.Server.Atmos.Piping.Components
|
||||
{
|
||||
/// <summary>
|
||||
@@ -19,7 +16,6 @@ namespace Content.Server.Atmos.Piping.Components
|
||||
/// <summary>
|
||||
/// Whether this device will join an entity system to process when not in a grid.
|
||||
/// </summary>
|
||||
[ViewVariables]
|
||||
[DataField("joinSystem")]
|
||||
public bool JoinSystem { get; } = false;
|
||||
|
||||
|
||||
@@ -88,7 +88,6 @@ namespace Content.Server.Atmos
|
||||
[Access(typeof(AtmosphereSystem), Other = AccessPermissions.ReadExecute)] // FIXME Friends
|
||||
public GasMixture? Air { get; set; }
|
||||
|
||||
[ViewVariables]
|
||||
[DataField("lastShare")]
|
||||
public float LastShare;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user