|
int | GetNumberOfEntries () |
|
int | GetValues (int id, out array< float > values) |
|
void | SetValues (int id, notnull array< float > newValues) |
| Method for changing the content of existing entry.
|
|
array< float > | GetBallisticValuesForClosestRange (int range, out int id=-1) |
| Finds values for first closest range.
|
|
array< float > | GetBallisticValuesForClosestAngle (float angle, out int id=-1, float epsilon=0.1, float epsilonStep=2, float maxEpsilon=1000) |
|
array< float > | GetBallisticValuesForRange (int range, out int id=-1) |
|
ResourceName | GetProjectileName () |
|
int | GetRangeStep () |
|
float | GetProjectileInitSpeedCoef () |
|
bool | IsForDirectFireMode () |
|
void | SCR_BallisticData (notnull array< ref array< float > > ballisticValues, string projectilePrefab, bool directFireMode, int rangeStep, float speedCoef) |
|
◆ SCR_BallisticData()
void SCR_BallisticData.SCR_BallisticData |
( |
notnull array< ref array< float > > | ballisticValues, |
|
|
string | projectilePrefab, |
|
|
bool | directFireMode, |
|
|
int | rangeStep, |
|
|
float | speedCoef ) |
- Parameters
-
[in] | ballisticValues | |
[in] | projectilePrefab | |
[in] | directFireMode | |
[in] | rangeStep | |
◆ GetBallisticValuesForClosestAngle()
array< float > SCR_BallisticData.GetBallisticValuesForClosestAngle |
( |
float | angle, |
|
|
out int | id = -1, |
|
|
float | epsilon = 0::1, |
|
|
float | epsilonStep = 2, |
|
|
float | maxEpsilon = 1000 ) |
- Parameters
-
[in] | angle | searched angle |
[out] | id | position in m_aBallisticValues which contains returned value (-1 no value found) |
[in] | epsilon | this value will be increased by epsilonStep with each recursive exectution to widen the range |
[in] | epsilonStep | |
[in] | maxEpsilon | if epsilon reaches this value then search will be stop and null will be returned |
- Returns
◆ GetBallisticValuesForClosestRange()
array< float > SCR_BallisticData.GetBallisticValuesForClosestRange |
( |
int | range, |
|
|
out int | id = -1 ) |
Finds values for first closest range.
- Parameters
-
[in] | range | searched range |
[out] | id | position in m_aBallisticValues which contains returned value (-1 no value found) |
- Returns
◆ GetBallisticValuesForRange()
array< float > SCR_BallisticData.GetBallisticValuesForRange |
( |
int | range, |
|
|
out int | id = -1 ) |
◆ GetNumberOfEntries()
int SCR_BallisticData.GetNumberOfEntries |
( |
| ) |
|
◆ GetProjectileInitSpeedCoef()
float SCR_BallisticData.GetProjectileInitSpeedCoef |
( |
| ) |
|
◆ GetProjectileName()
ResourceName SCR_BallisticData.GetProjectileName |
( |
| ) |
|
◆ GetRangeStep()
int SCR_BallisticData.GetRangeStep |
( |
| ) |
|
◆ GetValues()
int SCR_BallisticData.GetValues |
( |
int | id, |
|
|
out array< float > | values ) |
- Parameters
-
- Returns
- number of values in returned array
◆ IsForDirectFireMode()
bool SCR_BallisticData.IsForDirectFireMode |
( |
| ) |
|
◆ SetValues()
void SCR_BallisticData.SetValues |
( |
int | id, |
|
|
notnull array< float > | newValues ) |
Method for changing the content of existing entry.
- Parameters
-
◆ m_aBallisticValues
ref array<ref array<float> > SCR_BallisticData.m_aBallisticValues |
|
protected |
expected structure [0] range, [1] angle, [2] time of flight [3] drop per 100m of elevation change, [4] time of flight change per 100m of elevation change,
◆ m_bDirectFireMode
bool SCR_BallisticData.m_bDirectFireMode |
|
protected |
◆ m_fProjectileInitSpeedCoef
float SCR_BallisticData.m_fProjectileInitSpeedCoef |
|
protected |
◆ m_iRangeStep
int SCR_BallisticData.m_iRangeStep |
|
protected |
◆ m_mDistances
ref map<int, int> SCR_BallisticData.m_mDistances |
|
protected |
◆ m_sProjectilePrefabName
ResourceName SCR_BallisticData.m_sProjectilePrefabName |
|
protected |
◆ s_aBallistics
The documentation for this interface was generated from the following file:
- Game/Components/Gadgets/Configs/SCR_BallisticData.c