Arma Reforger Script API
|
Public Member Functions | |
int | GetRandomValue (out TValue outValue) |
int | GetRandomValue (out TValue outValue, RandomGenerator randomGenerator) |
int | GetWeightedValue (out TValue outValue, float weightedValue) |
float | GetTotalWeight () |
TValue | Get (int n) |
void | Set (int n, TValue value) |
int | Insert (TValue value, float weight) |
void | Remove (int i) |
void | RemoveOrdered (int i) |
float | GetWeight (int i) |
TValue | GetValue (int i) |
int | Count () |
bool | IsEmpty () |
bool | Contains (TValue value) |
int | Find (TValue value) |
int | CopyFrom (notnull SCR_WeightedArray< TValue > from) |
void | Clear () |
int | ToArray (out notnull array< TValue > outArray) |
void | Debug () |
Protected Attributes | |
ref array< TValue > | m_Values = new array<TValue>() |
ref array< float > | m_Weights = new array<float>() |
float | m_TotalWeight |
void SCR_WeightedArray< Class TValue >.Clear | ( | ) |
bool SCR_WeightedArray< Class TValue >.Contains | ( | TValue | value | ) |
int SCR_WeightedArray< Class TValue >.CopyFrom | ( | notnull SCR_WeightedArray< TValue > | from | ) |
int SCR_WeightedArray< Class TValue >.Count | ( | ) |
void SCR_WeightedArray< Class TValue >.Debug | ( | ) |
int SCR_WeightedArray< Class TValue >.Find | ( | TValue | value | ) |
TValue SCR_WeightedArray< Class TValue >.Get | ( | int | n | ) |
int SCR_WeightedArray< Class TValue >.GetRandomValue | ( | out TValue | outValue | ) |
int SCR_WeightedArray< Class TValue >.GetRandomValue | ( | out TValue | outValue, |
RandomGenerator | randomGenerator | ||
) |
float SCR_WeightedArray< Class TValue >.GetTotalWeight | ( | ) |
TValue SCR_WeightedArray< Class TValue >.GetValue | ( | int | i | ) |
float SCR_WeightedArray< Class TValue >.GetWeight | ( | int | i | ) |
int SCR_WeightedArray< Class TValue >.GetWeightedValue | ( | out TValue | outValue, |
float | weightedValue | ||
) |
int SCR_WeightedArray< Class TValue >.Insert | ( | TValue | value, |
float | weight | ||
) |
bool SCR_WeightedArray< Class TValue >.IsEmpty | ( | ) |
void SCR_WeightedArray< Class TValue >.Remove | ( | int | i | ) |
void SCR_WeightedArray< Class TValue >.RemoveOrdered | ( | int | i | ) |
void SCR_WeightedArray< Class TValue >.Set | ( | int | n, |
TValue | value | ||
) |
int SCR_WeightedArray< Class TValue >.ToArray | ( | out notnull array< TValue > | outArray | ) |
|
protected |
|
protected |
|
protected |