Class WeightedInt
- Namespace
- Vintagestory.API.MathTools
- Assembly
- VintagestoryAPI.dll
public class WeightedInt : WeightedValue<int>
- Inheritance
-
WeightedInt
- Inherited Members
- Extension Methods
Constructors
WeightedInt()
public WeightedInt()
WeightedInt(int, float)
public WeightedInt(int value, float weight)
Parameters
Methods
FromBytes(BinaryReader)
public void FromBytes(BinaryReader reader)
Parameters
reader
BinaryReader
New(int, float)
public static WeightedInt New(int value, float weight)
Parameters
Returns
ToBytes(BinaryWriter)
public void ToBytes(BinaryWriter writer)
Parameters
writer
BinaryWriter