Show / Hide Table of Contents

Class WeightedList<T, ItemType>

Like a list but stores elements in the order specified by the weight.
Inheritance
System.Object
WeightedList<T, ItemType>
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Jotunn.Utils
Assembly: Jotunn.dll
Syntax
public class WeightedList<T, ItemType>

    where T : WeightedItem<ItemType>
Type Parameters
Name Description
T
ItemType

Constructors

| Improve this Doc View Source

WeightedList()

Declaration
public WeightedList()

Fields

| Improve this Doc View Source

List

Declaration
public readonly List<T> List
Field Value
Type Description
System.Collections.Generic.List<T>

Methods

| Improve this Doc View Source

Add(T)

Declaration
public void Add(T item)
Parameters
Type Name Description
T item
| Improve this Doc View Source

GetRandomItem(List<T>)

Declaration
public ItemType GetRandomItem(List<T> list = null)
Parameters
Type Name Description
System.Collections.Generic.List<T> list
Returns
Type Description
ItemType
| Improve this Doc View Source

Remove(T)

Declaration
public bool Remove(T item)
Parameters
Type Name Description
T item
Returns
Type Description
System.Boolean

Extension Methods

PrefabExtension.FixReferences(Object)
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾