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

@@ -10,7 +10,7 @@ namespace Content.Server.NodeContainer
public sealed class NodeContainerComponent : Component
{
//HACK: THIS BEING readOnly IS A FILTHY HACK AND I HATE IT --moony
[DataField("nodes", readOnly: true)] [ViewVariables] public Dictionary<string, Node> Nodes { get; } = new();
[DataField("nodes", readOnly: true)] public Dictionary<string, Node> Nodes { get; } = new();
[DataField("examinable")] public bool Examinable = false;

View File

@@ -15,7 +15,6 @@ namespace Content.Server.NodeContainer.Nodes
/// An ID used as a criteria for combining into groups. Determines which <see cref="INodeGroup"/>
/// implementation is used as a group, detailed in <see cref="INodeGroupFactory"/>.
/// </summary>
[ViewVariables]
[DataField("nodeGroupID")]
public NodeGroupID NodeGroupID { get; private set; } = NodeGroupID.Default;

View File

@@ -18,7 +18,6 @@ namespace Content.Server.NodeContainer.Nodes
/// <summary>
/// The directions in which this pipe can connect to other pipes around it.
/// </summary>
[ViewVariables]
[DataField("pipeDirection")]
private PipeDirection _originalPipeDirection;
@@ -97,7 +96,6 @@ namespace Content.Server.NodeContainer.Nodes
}
}
[ViewVariables]
[DataField("volume")]
public float Volume { get; set; } = DefaultVolume;