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

@@ -19,7 +19,6 @@ namespace Content.Server.Destructible.Thresholds
/// <summary>
/// Whether or not this threshold has already been triggered.
/// </summary>
[ViewVariables]
[DataField("triggered")]
public bool Triggered { get; private set; }
@@ -29,14 +28,12 @@ namespace Content.Server.Destructible.Thresholds
/// and then damaged to reach this threshold once again.
/// It will not repeatedly trigger as damage rises beyond that.
/// </summary>
[ViewVariables]
[DataField("triggersOnce")]
public bool TriggersOnce { get; set; }
/// <summary>
/// The trigger that decides if this threshold has been reached.
/// </summary>
[ViewVariables]
[DataField("trigger")]
public IThresholdTrigger? Trigger { get; set; }

View File

@@ -4,11 +4,9 @@
[DataDefinition]
public struct MinMax
{
[ViewVariables]
[DataField("min")]
public int Min;
[ViewVariables]
[DataField("max")]
public int Max;
}