DIFF

class AmmoTypesAPISource

Constructors 2

private void AmmoTypesAPI()
private void ~AmmoTypesAPI()

Members 1

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

Methods 7

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

References ErrorEx(), Exists(), string.Format()
Show 1 more, GetAmmoType()
static void AddExplosionParticleEffect(string ammoName, string surfaceName, int particleID)
References map.Find(), map.Insert(), Insert()
Show 1 more, m_TypeToSurfaceParticleIDMap
Referenced by Init()
static int GetExplosionParticleID(string ammoName, string surfaceName)
References Find(), map.Get(), and m_TypeToSurfaceParticleIDMap
static void Cleanup()