Table of Contents

Class WeightedSelector<T>

Namespace
Nekoyume.Battle
Assembly
Lib9c.dll
public class WeightedSelector<T>

Type Parameters

T
Inheritance
WeightedSelector<T>
Inherited Members

Constructors

WeightedSelector(IRandom)

public WeightedSelector(IRandom random)

Parameters

random IRandom

Properties

Count

public int Count { get; }

Property Value

int

Methods

Add(T, decimal)

public void Add(T item, decimal weight)

Parameters

item T
weight decimal

Clear()

public void Clear()

Select(int)

public IEnumerable<T> Select(int count)

Parameters

count int

Returns

IEnumerable<T>

SelectV1(int)

[Obsolete("Use Select")]
public IEnumerable<T> SelectV1(int count)

Parameters

count int

Returns

IEnumerable<T>

SelectV2(int)

[Obsolete("Use Select")]
public IEnumerable<T> SelectV2(int count)

Parameters

count int

Returns

IEnumerable<T>