Dayz 1.25
Dayz Code Explorer by KGB
Загрузка...
Поиск...
Не найдено
Класс AmmoTypesAPI

Закрытые члены

void AmmoTypesAPI ()
 
void ~AmmoTypesAPI ()
 

Закрытые статические члены

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.
 

Подробное описание

Конструктор(ы)

◆ AmmoTypesAPI()

void AmmoTypesAPI ( )
inlineprivate
3{}

◆ ~AmmoTypesAPI()

void ~AmmoTypesAPI ( )
inlineprivate
4{}

Методы

◆ Exists()

static proto bool Exists ( string ammoType)
staticprivate

Check if ammoType exists (registered in cfgAmmoTypes)

Используется в MagazineTypeToAmmoType().

◆ GetAmmoType()

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

Get the default ammoType of a magazine.

Используется в MagazineTypeToAmmoType().

◆ MagazineTypeToAmmoType()

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

Helper method.

13 {
15 {
17 {
18 ErrorEx(string.Format("%1 is not a magazineType or ammoType or has no default 'ammo' set up in config.", magazineType));
19 return false;
20 }
21 return true;
22 }
23 else
24 {
25 // This is already an ammoType
27 return true;
28 }
29 }
Definition AmmoTypes.c:2
static proto bool GetAmmoType(string magazineType, out string ammoType)
Get the default ammoType of a magazine.
static proto bool Exists(string ammoType)
Check if ammoType exists (registered in cfgAmmoTypes)
Definition EntityAI.c:95
enum ShapeType ErrorEx

Перекрестные ссылки ErrorEx, Exists() и GetAmmoType().

Используется в Weapon::FillChamber() и Weapon::FillInnerMagazine().


Объявления и описания членов класса находятся в файле: