mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-23 08:37:48 +03:00
* first pass * this shit too * ok fix that shit * buff * actually fix that (cherry picked from commit 3cdd62b0dd880135a4d83f6dcf0be4f1f95c3e8d)
30 lines
519 B
C#
30 lines
519 B
C#
using Robust.Shared.Random;
|
|
|
|
namespace Content.Shared.Destructible.Thresholds;
|
|
|
|
[DataDefinition, Serializable]
|
|
public partial struct MinMax
|
|
{
|
|
[DataField]
|
|
public int Min;
|
|
|
|
[DataField]
|
|
public int Max;
|
|
|
|
public MinMax(int min, int max)
|
|
{
|
|
Min = min;
|
|
Max = max;
|
|
}
|
|
|
|
public readonly int Next(IRobustRandom random)
|
|
{
|
|
return random.Next(Min, Max + 1);
|
|
}
|
|
|
|
public readonly int Next(System.Random random)
|
|
{
|
|
return random.Next(Min, Max + 1);
|
|
}
|
|
}
|