LethalCompany/Lethal Company/ExportedProject/Assets/Scripts/Assembly-CSharp/DunGen/Chance.cs
2023-12-22 18:30:10 -05:00

28 lines
318 B
C#

using System;
namespace DunGen
{
[Serializable]
public class Chance<T>
{
public T Value;
public float Weight;
public Chance()
: this(default(T), 1f)
{
}
public Chance(T value)
: this(value, 1f)
{
}
public Chance(T value, float weight)
{
Value = value;
Weight = weight;
}
}
}