Table of Contents

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

value int
weight float

Methods

FromBytes(BinaryReader)

public void FromBytes(BinaryReader reader)

Parameters

reader BinaryReader

New(int, float)

public static WeightedInt New(int value, float weight)

Parameters

value int
weight float

Returns

WeightedInt

ToBytes(BinaryWriter)

public void ToBytes(BinaryWriter writer)

Parameters

writer BinaryWriter