2021-02-05 13:41:05 +01:00
|
|
|
|
using System;
|
2020-12-21 12:11:56 +01:00
|
|
|
|
using Robust.Shared.Serialization;
|
|
|
|
|
|
using Robust.Shared.ViewVariables;
|
2020-12-07 14:52:55 +01:00
|
|
|
|
|
2020-12-23 13:34:57 +01:00
|
|
|
|
namespace Content.Server.GameObjects.Components.Destructible.Thresholds
|
2020-12-07 14:52:55 +01:00
|
|
|
|
{
|
2021-02-05 13:41:05 +01:00
|
|
|
|
[Serializable]
|
2020-12-21 12:11:56 +01:00
|
|
|
|
public struct MinMax : IExposeData
|
2020-12-07 14:52:55 +01:00
|
|
|
|
{
|
|
|
|
|
|
[ViewVariables]
|
|
|
|
|
|
public int Min;
|
|
|
|
|
|
|
|
|
|
|
|
[ViewVariables]
|
|
|
|
|
|
public int Max;
|
2020-12-21 12:11:56 +01:00
|
|
|
|
|
2021-02-04 17:44:49 +01:00
|
|
|
|
void IExposeData.ExposeData(ObjectSerializer serializer)
|
2020-12-21 12:11:56 +01:00
|
|
|
|
{
|
|
|
|
|
|
serializer.DataField(ref Min, "min", 0);
|
|
|
|
|
|
serializer.DataField(ref Max, "max", 0);
|
|
|
|
|
|
}
|
2020-12-07 14:52:55 +01:00
|
|
|
|
}
|
|
|
|
|
|
}
|