terraria-cpp2il v1.4.4.9
Terraria mobile dump, with CallAnalysis (see source code). Dump with reconstucted method: https://infinitynichto.github.io/terraria-cpp2il-methodrecon
Loading...
Searching...
No Matches
Terraria.Utilities.WeightedRandom< T > Class Template Reference
+ Collaboration diagram for Terraria.Utilities.WeightedRandom< T >:

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 10 of file WeightedRandom.cs.


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