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

@@ -13,7 +13,7 @@ namespace Content.Server.Explosion.Components
/// <summary>
/// What we fill our prototype with if we want to pre-spawn with grenades.
/// </summary>
[ViewVariables] [DataField("fillPrototype", customTypeSerializer:typeof(PrototypeIdSerializer<EntityPrototype>))]
[DataField("fillPrototype", customTypeSerializer:typeof(PrototypeIdSerializer<EntityPrototype>))]
public string? FillPrototype;
/// <summary>
@@ -24,7 +24,7 @@ namespace Content.Server.Explosion.Components
/// <summary>
/// Maximum grenades in the container.
/// </summary>
[ViewVariables] [DataField("maxGrenadesCount")]
[DataField("maxGrenadesCount")]
public int MaxGrenades = 3;
/// <summary>

View File

@@ -1,6 +1,6 @@
using Content.Server.Explosion.EntitySystems;
using Robust.Shared.Physics.Collision.Shapes;
using Content.Shared.Explosion;
using Robust.Shared.Physics.Collision.Shapes;
using Robust.Shared.Physics.Components;
namespace Content.Server.Explosion.Components
@@ -22,18 +22,15 @@ namespace Content.Server.Explosion.Components
/// <summary>
/// How long the the proximity trigger animation plays for.
/// </summary>
[ViewVariables]
[DataField("animationDuration")]
public float AnimationDuration = 0.3f;
/// <summary>
/// Whether the entity needs to be anchored for the proximity to work.
/// </summary>
[ViewVariables]
[DataField("requiresAnchored")]
public bool RequiresAnchored { get; set; } = true;
[ViewVariables]
[DataField("enabled")]
public bool Enabled = true;