Update destructible threshold property casing to follow the rest of the project (#2797)

* Update casing

* Update casing for min/max
This commit is contained in:
DrSmugleaf
2020-12-21 12:11:56 +01:00
committed by GitHub
parent 38dcc058c7
commit fd258a54d3
44 changed files with 244 additions and 236 deletions

View File

@@ -1,13 +1,21 @@
using Robust.Shared.ViewVariables;
using Robust.Shared.Interfaces.Serialization;
using Robust.Shared.Serialization;
using Robust.Shared.ViewVariables;
namespace Content.Server.GameObjects.Components.Destructible
{
public struct MinMax
public struct MinMax : IExposeData
{
[ViewVariables]
public int Min;
[ViewVariables]
public int Max;
public void ExposeData(ObjectSerializer serializer)
{
serializer.DataField(ref Min, "min", 0);
serializer.DataField(ref Max, "max", 0);
}
}
}

View File

@@ -52,12 +52,12 @@ namespace Content.Server.GameObjects.Components.Destructible
public void ExposeData(ObjectSerializer serializer)
{
serializer.DataField(ref Spawn, "Spawn", null);
serializer.DataField(ref Sound, "Sound", string.Empty);
serializer.DataField(ref SoundCollection, "SoundCollection", string.Empty);
serializer.DataField(ref Acts, "Acts", 0, WithFormat.Flags<ActsFlags>());
serializer.DataField(ref Triggered, "Triggered", false);
serializer.DataField(ref TriggersOnce, "TriggersOnce", false);
serializer.DataField(ref Spawn, "spawn", null);
serializer.DataField(ref Sound, "sound", string.Empty);
serializer.DataField(ref SoundCollection, "soundCollection", string.Empty);
serializer.DataField(ref Acts, "acts", 0, WithFormat.Flags<ActsFlags>());
serializer.DataField(ref Triggered, "triggered", false);
serializer.DataField(ref TriggersOnce, "triggersOnce", false);
}
/// <summary>