Remove redundant read-only VV from datafields (#12626)

This commit is contained in:
DrSmugleaf
2022-11-16 20:22:11 +01:00
committed by GitHub
parent fb892cb374
commit 7fbc2608e8
179 changed files with 171 additions and 462 deletions

View File

@@ -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; }

View File

@@ -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()
{

View File

@@ -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;
}

View File

@@ -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;
}