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,8 +1,7 @@
using Robust.Shared.Prototypes;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
using Content.Shared.Radio;
using Content.Shared.Salvage;
using Robust.Shared.GameStates;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
namespace Content.Server.Salvage
{
@@ -48,7 +47,6 @@ namespace Content.Server.Salvage
[DataField("magnetState")]
public MagnetState MagnetState = MagnetState.Inactive;
[ViewVariables]
[DataField("salvageChannel", customTypeSerializer: typeof(PrototypeIdSerializer<RadioChannelPrototype>))]
public string SalvageChannel = "Supply";

View File

@@ -1,6 +1,5 @@
using Robust.Shared.Prototypes;
using Robust.Shared.Utility;
using Robust.Shared.Maths;
namespace Content.Server.Salvage
{
@@ -14,21 +13,18 @@ namespace Content.Server.Salvage
/// <summary>
/// Relative directory path to the given map, i.e. `Maps/Salvage/test.yml`
/// </summary>
[ViewVariables]
[DataField("mapPath", required: true)]
public ResourcePath MapPath { get; } = default!;
/// <summary>
/// Map rectangle in world coordinates (to check if it fits)
/// </summary>
[ViewVariables]
[DataField("bounds", required: true)]
public Box2 Bounds { get; } = Box2.UnitCentered;
/// <summary>
/// Name for admin use
/// </summary>
[ViewVariables]
[DataField("name")]
public string Name { get; } = "";
}