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