Files
SPT-Server-Build/Libraries/Core/Models/Common/MinMax.cs
T
Chomp 3219718d27 Replaced minmaxdouble + minmaxint with generic minmax<T>
Updated various doubles to be ints
2025-02-10 10:44:24 +00:00

38 lines
479 B
C#

using System.Text.Json.Serialization;
namespace Core.Models.Common;
public record MinMax<T>
{
public MinMax(T min, T max)
{
Min = min;
Max = max;
}
public MinMax()
{
}
[JsonPropertyName("type")]
public string? Type
{
get;
set;
}
[JsonPropertyName("max")]
public T Max
{
get;
set;
}
[JsonPropertyName("min")]
public T Min
{
get;
set;
}
}