Class WeightedList<T, ItemType>
Like a list but stores elements in the order specified by the weight.
Inherited Members
Namespace: Jotunn.Utils
Assembly: Jotunn.dll
Syntax
public class WeightedList<T, ItemType> where T : WeightedItem<ItemType>
Type Parameters
| Name | Description |
|---|---|
| T | |
| ItemType |
Constructors
| Name | Description |
|---|---|
| WeightedList() |
Fields
| Name | Description |
|---|---|
| List |
Methods
| Name | Description |
|---|---|
| Add(T) | |
| GetRandomItem(List<T>) | |
| Remove(T) |