LethalCompany/Lethal Company/ExportedProject/Assets/Scripts/Assembly-CSharp/DunGen/Chance.cs

29 lines
318 B
C#
Raw Normal View History

2023-12-22 22:51:17 +00:00
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;
}
}
}