Table of Contents

Class WeightedOptionsArray.WeightedOption

Namespace
KSP.Modding.Variety
Assembly
Assembly-CSharp.dll
public class WeightedOptionsArray.WeightedOption
Inheritance
WeightedOptionsArray.WeightedOption
Inherited Members
Extension Methods

Constructors

WeightedOption(object, uint)

public WeightedOption(object option, uint weight)

Parameters

option object
weight uint

Fields

CumulativeWeight

public uint CumulativeWeight

Field Value

uint

_option

protected object _option

Field Value

object

_weight

protected uint _weight

Field Value

uint

Properties

Option

public object Option { get; }

Property Value

object

Weight

public uint Weight { get; }

Property Value

uint

Methods

IsOptionValid()

public bool IsOptionValid()

Returns

bool

IsWeightValid()

public bool IsWeightValid()

Returns

bool

Sort(WeightedOption, WeightedOption)

public static int Sort(WeightedOptionsArray.WeightedOption a, WeightedOptionsArray.WeightedOption b)

Parameters

a WeightedOptionsArray.WeightedOption
b WeightedOptionsArray.WeightedOption

Returns

int