Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
AmmoTypesAPI Class Reference

Static Protected Attributes

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

Private Member Functions

void AmmoTypesAPI ()
void ~AmmoTypesAPI ()

Static Private Member Functions

static void AddExplosionParticleEffect (string ammoName, string surfaceName, int particleID)
static void Cleanup ()
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 int GetExplosionParticleID (string ammoName, string surfaceName)
static void Init ()
static bool MagazineTypeToAmmoType (string magazineType, out string ammoType)
 Helper method.

Detailed Description

Definition at line 1 of file ammotypes.c.

Constructor & Destructor Documentation

◆ AmmoTypesAPI()

void AmmoTypesAPI ( )
inlineprivate

Definition at line 5 of file ammotypes.c.

Referenced by MagazineTypeToAmmoType().

◆ ~AmmoTypesAPI()

void ~AmmoTypesAPI ( )
inlineprivate

Definition at line 6 of file ammotypes.c.

Member Function Documentation

◆ AddExplosionParticleEffect()

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

Definition at line 45 of file ammotypes.c.

References m_TypeToSurfaceParticleIDMap.

Referenced by Init().

◆ Cleanup()

void Cleanup ( )
inlinestaticprivate

Definition at line 74 of file ammotypes.c.

References m_TypeToSurfaceParticleIDMap.

Referenced by MissionBaseWorld::~MissionBase().

◆ Exists()

proto bool Exists ( string ammoType)
staticprivate

Check if ammoType exists (registered in cfgAmmoTypes).

◆ GetAmmoType()

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

Get the default ammoType of a magazine.

◆ GetExplosionParticleID()

int GetExplosionParticleID ( string ammoName,
string surfaceName )
inlinestaticprivate

Definition at line 57 of file ammotypes.c.

References m_TypeToSurfaceParticleIDMap.

Referenced by CGame::ExplosionEffects().

◆ Init()

◆ MagazineTypeToAmmoType()

bool MagazineTypeToAmmoType ( string magazineType,
out string ammoType )
inlinestaticprivate

Helper method.

Definition at line 14 of file ammotypes.c.

References AmmoTypesAPI(), and ErrorEx.

Referenced by Weapon::FillChamber(), Weapon::FillInnerMagazine(), and Weapon::FillSpecificChamber().

Field Documentation

◆ m_TypeToSurfaceParticleIDMap

ref map<string, ref map<string, int> > m_TypeToSurfaceParticleIDMap
staticprotected

Definition at line 3 of file ammotypes.c.

Referenced by AddExplosionParticleEffect(), Cleanup(), GetExplosionParticleID(), and Init().


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