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