PC Stable Documentation
 
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Loading...
Searching...
No Matches
AmmoTypesAPI Class Reference

Private Member Functions

private void AmmoTypesAPI ()
 
private void ~AmmoTypesAPI ()
 

Static Private Member Functions

static proto bool Exists (string ammoType)
 Check if ammoType exists (registered in cfgAmmoTypes)
 
static proto bool GetAmmoType (string magazineType, out string ammoType)
 Get the default ammoType of a magazine.
 
static bool MagazineTypeToAmmoType (string magazineType, out string ammoType)
 Helper method.
 
static void Init ()
 
static void AddExplosionParticleEffect (string ammoName, string surfaceName, int particleID)
 
static int GetExplosionParticleID (string ammoName, string surfaceName)
 
static void Cleanup ()
 

Static Private Attributes

static protected ref map< string, ref map< string, int > > m_TypeToSurfaceParticleIDMap
 

Constructor & Destructor Documentation

◆ AmmoTypesAPI()

private void AmmoTypesAPI ( )
inlineprivate

◆ ~AmmoTypesAPI()

private void ~AmmoTypesAPI ( )
inlineprivate

Member Function Documentation

◆ AddExplosionParticleEffect()

static void AddExplosionParticleEffect ( string  ammoName,
string  surfaceName,
int  particleID 
)
inlinestaticprivate

References m_TypeToSurfaceParticleIDMap.

Referenced by Init().

◆ Cleanup()

static void Cleanup ( )
inlinestaticprivate

◆ Exists()

static proto bool Exists ( string  ammoType)
staticprivate

Check if ammoType exists (registered in cfgAmmoTypes)

Referenced by MagazineTypeToAmmoType().

◆ GetAmmoType()

static proto bool GetAmmoType ( string  magazineType,
out string  ammoType 
)
staticprivate

Get the default ammoType of a magazine.

Referenced by MagazineTypeToAmmoType().

◆ GetExplosionParticleID()

static int GetExplosionParticleID ( string  ammoName,
string  surfaceName 
)
inlinestaticprivate

◆ Init()

◆ MagazineTypeToAmmoType()

static bool MagazineTypeToAmmoType ( string  magazineType,
out string  ammoType 
)
inlinestaticprivate

Field Documentation

◆ m_TypeToSurfaceParticleIDMap

protected ref map<string, ref map<string, int> > m_TypeToSurfaceParticleIDMap
staticprivate

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