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

@@ -15,7 +15,6 @@ namespace Content.Shared.Construction
[DataField("completed", serverOnly: true)]
private IGraphAction[] _completed = Array.Empty<IGraphAction>();
[ViewVariables]
[DataField("to", required:true)]
public string Target { get; } = string.Empty;

View File

@@ -12,7 +12,6 @@ namespace Content.Shared.Construction
[DataField("edges")]
private ConstructionGraphEdge[] _edges = Array.Empty<ConstructionGraphEdge>();
[ViewVariables]
[DataField("node", required: true)]
public string Name { get; private set; } = default!;
@@ -22,7 +21,6 @@ namespace Content.Shared.Construction
[ViewVariables]
public IReadOnlyList<IGraphAction> Actions => _actions;
[ViewVariables]
[DataField("entity")]
public string? Entity { get; private set; }

View File

@@ -16,7 +16,6 @@ namespace Content.Shared.Construction.Prototypes
[IdDataFieldAttribute]
public string ID { get; } = default!;
[ViewVariables]
[DataField("start")]
public string? Start { get; }