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,9 +1,6 @@
using System.Threading;
using Content.Shared.Chemistry.Components;
using Content.Shared.FixedPoint;
using Content.Server.UserInterface;
using Robust.Server.GameObjects;
using Content.Shared.Chemistry;
namespace Content.Server.Chemistry.Components
{
@@ -21,7 +18,6 @@ namespace Content.Server.Chemistry.Components
/// Whether or not the injector is able to draw from containers or if it's a single use
/// device that can only inject.
/// </summary>
[ViewVariables]
[DataField("injectOnly")]
public bool InjectOnly;
@@ -31,7 +27,6 @@ namespace Content.Server.Chemistry.Components
/// <remarks>
/// for example: droppers would ignore mobs
/// </remarks>
[ViewVariables]
[DataField("ignoreMobs")]
public bool IgnoreMobs = false;

View File

@@ -7,11 +7,9 @@ namespace Content.Server.Chemistry.Components
[RegisterComponent]
public sealed class RehydratableComponent : Component
{
[ViewVariables]
[DataField("catalyst")]
internal string CatalystPrototype = "Water";
[ViewVariables]
[DataField("target")]
internal string? TargetPrototype = default!;

View File

@@ -7,7 +7,6 @@ namespace Content.Server.Chemistry.Components.SolutionManager
[Access(typeof(SolutionContainerSystem))]
public sealed class SolutionContainerManagerComponent : Component
{
[ViewVariables]
[DataField("solutions")]
[Access(typeof(SolutionContainerSystem), Other = AccessPermissions.ReadExecute)] // FIXME Friends
public readonly Dictionary<string, Solution> Solutions = new();

View File

@@ -1,6 +1,4 @@
using Content.Shared.FixedPoint;
using Content.Shared.Vapor;
using Robust.Shared.Map;
namespace Content.Server.Chemistry.Components
{
@@ -9,7 +7,6 @@ namespace Content.Server.Chemistry.Components
{
public const string SolutionName = "vapor";
[ViewVariables]
[DataField("transferAmount")]
public FixedPoint2 TransferAmount = FixedPoint2.New(0.5);