Remove redundant read-only VV from datafields (#12626)
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
using Content.Server.Power.EntitySystems;
|
||||
using Content.Server.Power.NodeGroups;
|
||||
using Content.Shared.APC;
|
||||
using Robust.Shared.Audio;
|
||||
@@ -18,7 +17,6 @@ public sealed class ApcComponent : BaseApcNetComponent
|
||||
/// <summary>
|
||||
/// Is the panel open for this entity's APC?
|
||||
/// </summary>
|
||||
[ViewVariables]
|
||||
[DataField("open")]
|
||||
public bool IsApcOpen { get; set; }
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@ namespace Content.Server.Power.Components
|
||||
[ViewVariables]
|
||||
private bool _needsNet => _net != null;
|
||||
|
||||
[DataField("node")] [ViewVariables] public string? NodeId { get; set; }
|
||||
[DataField("node")] public string? NodeId { get; set; }
|
||||
|
||||
protected override void Initialize()
|
||||
{
|
||||
|
||||
@@ -6,11 +6,9 @@ namespace Content.Server.Power.Components
|
||||
[RegisterComponent]
|
||||
public sealed class CablePlacerComponent : Component
|
||||
{
|
||||
[ViewVariables]
|
||||
[DataField("cablePrototypeID", customTypeSerializer:typeof(PrototypeIdSerializer<EntityPrototype>))]
|
||||
public string? CablePrototypeId = "CableHV";
|
||||
|
||||
[ViewVariables]
|
||||
[DataField("blockingWireType")]
|
||||
public CableType BlockingCableType = CableType.HighVoltage;
|
||||
}
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
using Content.Shared.Containers.ItemSlots;
|
||||
using Content.Shared.Power;
|
||||
|
||||
namespace Content.Server.Power.Components
|
||||
@@ -9,11 +8,9 @@ namespace Content.Server.Power.Components
|
||||
[ViewVariables]
|
||||
public CellChargerStatus Status;
|
||||
|
||||
[ViewVariables]
|
||||
[DataField("chargeRate")]
|
||||
public int ChargeRate = 20;
|
||||
|
||||
[ViewVariables]
|
||||
[DataField("slotId", required: true)]
|
||||
public string SlotId = string.Empty;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user