terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches
Terraria.Utilities.WeightedRandom< T > Class Template Reference

Public Member Functions

 WeightedRandom ()
 
 WeightedRandom (int seed)
 
 WeightedRandom (UnifiedRandom random)
 
 WeightedRandom (params Tuple< T, double >[] theElements)
 
 WeightedRandom (int seed, params Tuple< T, double >[] theElements)
 
 WeightedRandom (UnifiedRandom random, params Tuple< T, double >[] theElements)
 
void Add (T element, double weight=1.0)
 
Get ()
 
void CalculateTotalWeight ()
 
void Clear ()
 

Static Public Member Functions

static implicit operator T (WeightedRandom< T > weightedRandom)
 

Public Attributes

readonly List< Tuple< T, double > > elements
 
readonly UnifiedRandom random
 
bool needsRefresh
 

Private Attributes

double _totalWeight
 

Detailed Description

Definition at line 7 of file WeightedRandom.cs.


The documentation for this class was generated from the following file: