|
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_aValues = {} |
| ref array< float > | m_aWeights = {} |
| float | m_fTotalWeight |
| void SCR_WeightedArray< Class TValue >.Clear | ( | ) |
| bool SCR_WeightedArray< Class TValue >.Contains | ( | TValue | value | ) |
| [in] | value |
| int SCR_WeightedArray< Class TValue >.CopyFrom | ( | notnull SCR_WeightedArray< TValue > | from | ) |
| [in] | from |
| int SCR_WeightedArray< Class TValue >.Count | ( | ) |
| void SCR_WeightedArray< Class TValue >.Debug | ( | ) |
| int SCR_WeightedArray< Class TValue >.Find | ( | TValue | value | ) |
| [in] | value |
| TValue SCR_WeightedArray< Class TValue >.Get | ( | int | n | ) |
| [in] | n |
| int SCR_WeightedArray< Class TValue >.GetRandomValue | ( | out TValue | outValue | ) |
| [out] | outValue |
| int SCR_WeightedArray< Class TValue >.GetRandomValue | ( | out TValue | outValue, |
| RandomGenerator | randomGenerator ) |
| [out] | outValue | |
| [in] | randomGenerator |
| float SCR_WeightedArray< Class TValue >.GetTotalWeight | ( | ) |
| TValue SCR_WeightedArray< Class TValue >.GetValue | ( | int | i | ) |
| [in] | i |
| float SCR_WeightedArray< Class TValue >.GetWeight | ( | int | i | ) |
| [in] | i |
| int SCR_WeightedArray< Class TValue >.GetWeightedValue | ( | out TValue | outValue, |
| float | weightedValue ) |
| [out] | outValue | |
| [in] | weightedValue |
| int SCR_WeightedArray< Class TValue >.Insert | ( | TValue | value, |
| float | weight ) |
| [in] | value | |
| [in] | weight |
| bool SCR_WeightedArray< Class TValue >.IsEmpty | ( | ) |
| void SCR_WeightedArray< Class TValue >.Remove | ( | int | i | ) |
| [in] | i |
| void SCR_WeightedArray< Class TValue >.RemoveOrdered | ( | int | i | ) |
| [in] | i |
| void SCR_WeightedArray< Class TValue >.Set | ( | int | n, |
| TValue | value ) |
| [in] | n | |
| [in] | value |
| int SCR_WeightedArray< Class TValue >.ToArray | ( | out notnull array< TValue > | outArray | ) |
| [out] | outArray |
|
protected |
|
protected |
|
protected |