Remove redundant read-only VV from datafields (#12626)
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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!;
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user