Dayz Explorer
1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
cfgparam.c
Go to the documentation of this file.
1
const
int
CFG_TYPE_STRING
= 0;
2
const
int
CFG_TYPE_INT
= 1;
3
const
int
CFG_TYPE_FLOAT
= 2;
4
const
int
CFG_TYPE_BOOL
= 3;
5
const
int
CFG_TYPE_ARRAY
= 4;
6
const
int
CFG_TYPE_PARAM
= 5;
7
8
class
CfgParam
:
Managed
9
{
10
protected
string
m_ParamName;
11
protected
string
m_ParamValueString;
12
13
void
CfgParam
(
string
param_name)
14
{
15
m_ParamName
= param_name;
16
}
17
18
void
SetName(
string
param_name)
19
{
20
m_ParamName
= param_name;
21
}
22
23
string
GetName()
24
{
25
return
m_ParamName
;
26
}
27
28
int
GetType()
29
{
30
return
-1;
31
}
32
33
bool
IsArray()
34
{
35
return
false
;
36
}
37
38
static
CfgParam
CreateParam(
string
name
,
int
cfg_type)
39
{
40
CfgParam
param;
41
42
switch
(cfg_type)
43
{
44
case
CFG_TYPE_STRING
:
45
{
46
param =
new
CfgParamString(
name
);
47
break
;
48
}
49
case
CFG_TYPE_INT
:
50
{
51
param =
new
CfgParamInt(
name
);
52
break
;
53
}
54
case
CFG_TYPE_FLOAT
:
55
{
56
param =
new
CfgParamFloat(
name
);
57
break
;
58
}
59
case
CFG_TYPE_BOOL
:
60
{
61
param =
new
CfgParamBool(
name
);
62
break
;
63
}
64
case
CFG_TYPE_ARRAY
:
65
{
66
param =
new
CfgParamArray(
name
);
67
break
;
68
}
69
}
70
71
return
param;
72
}
73
}
m_ParamName
enum eZoneType m_ParamName
CfgParam
Definition:
cfgparam.c:8
Managed
TODO doc.
Definition:
enscript.c:117
CFG_TYPE_STRING
const int CFG_TYPE_STRING
Definition:
cfgparam.c:1
CFG_TYPE_INT
const int CFG_TYPE_INT
Definition:
cfgparam.c:2
CFG_TYPE_ARRAY
const int CFG_TYPE_ARRAY
Definition:
cfgparam.c:5
CFG_TYPE_FLOAT
const int CFG_TYPE_FLOAT
Definition:
cfgparam.c:3
CFG_TYPE_PARAM
const int CFG_TYPE_PARAM
Definition:
cfgparam.c:6
name
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
CFG_TYPE_BOOL
const int CFG_TYPE_BOOL
Definition:
cfgparam.c:4
DAYZ
scripts_v1.24.157551
scripts
world
classes
confighandler
cfgparam.c
Generated by
1.8.17