Dayz Explorer
1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
ammotypes.c
Go to the documentation of this file.
1
class
AmmoTypesAPI
2
{
3
private
void
AmmoTypesAPI
() {}
4
private
void
~
AmmoTypesAPI
() {}
5
7
static
proto
bool
Exists(
string
ammoType);
9
static
proto
bool
GetAmmoType(
string
magazineType, out
string
ammoType);
10
12
static
bool
MagazineTypeToAmmoType(
string
magazineType, out
string
ammoType)
13
{
14
if
( !
AmmoTypesAPI
.Exists(magazineType) )
15
{
16
if
( !
AmmoTypesAPI
.GetAmmoType(magazineType, ammoType) )
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
26
ammoType = magazineType;
27
return
true
;
28
}
29
}
30
}
AmmoTypesAPI
Definition:
ammotypes.c:1
ErrorEx
enum ShapeType ErrorEx
DAYZ
scripts_v1.24.157551
scripts
game
global
ammotypes.c
Generated by
1.8.17