JUtils
A unity utilities library
JUtils.Weighted< T > Struct Template Reference

A struct that makes it easier to work with weighted randomness

See also
WeightedExtensions
More...

Inheritance diagram for JUtils.Weighted< T >:
Collaboration diagram for JUtils.Weighted< T >:

Public Member Functions

 Weighted (T initialValue, float weight)
 Create a new instance of Weighted`T More...
 

Properties

float weight [get]
 
value [get]
 
- Properties inherited from JUtils.IWeighted
float weight [get]
 

Detailed Description

A struct that makes it easier to work with weighted randomness

See also
WeightedExtensions

Constructor & Destructor Documentation

◆ Weighted()

JUtils.Weighted< T >.Weighted ( initialValue,
float  weight 
)
inline

Create a new instance of Weighted`T

References JUtils.Weighted< T >.weight.

Property Documentation

◆ value

T JUtils.Weighted< T >.value
get

◆ weight

float JUtils.Weighted< T >.weight
get

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