DayZ 1.30
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ MagazineTypeToAmmoType()

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

Helper method.

См. определение в файле AmmoTypes.c строка 26

27 {
28 if ( !AmmoTypesAPI.Exists(magazineType) )
29 {
30 if ( !AmmoTypesAPI.GetAmmoType(magazineType, ammoType) )
31 {
32 ErrorEx(string.Format("%1 is not a magazineType or ammoType or has no default 'ammo' set up in config.", magazineType));
33 return false;
34 }
35 return true;
36 }
37 else
38 {
39 // This is already an ammoType
40 ammoType = magazineType;
41 return true;
42 }
43 }
void AmmoTypesAPI()
Определения AmmoTypes.c:17
string ammoType
Определения DustKickupEffects.c:24
enum ShapeType ErrorEx

Перекрестные ссылки ammoType, AmmoTypesAPI() и ErrorEx.