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

@@ -3,7 +3,6 @@ using Robust.Server.Player;
using Robust.Shared.Reflection;
using Robust.Shared.Serialization;
namespace Content.Server.UserInterface
{
[RegisterComponent]
@@ -19,7 +18,6 @@ namespace Content.Server.UserInterface
[DataField("inHandsOnly")]
public bool InHandsOnly { get; set; } = false;
[ViewVariables]
[DataField("singleUser")]
public bool SingleUser { get; set; } = false;

View File

@@ -10,7 +10,7 @@ public sealed class IntrinsicUIComponent : Component, ISerializationHooks
/// <summary>
/// List of UIs and their actions that this entity has.
/// </summary>
[ViewVariables, DataField("uis", required: true)]
[DataField("uis", required: true)]
public List<IntrinsicUIEntry> UIs = new();
void ISerializationHooks.AfterDeserialization()