DayZ
1.24
Loading...
Searching...
No Matches
PluginVariables.c
Go to the documentation of this file.
1
class
PluginVariables
extends
PluginBase
2
{
3
void
PluginVariables
()
4
{
5
m_Id
= 0;
6
m_Variables =
new
map<int, string>
;
7
// ("variable name")
8
RegisterVariable
(
"varNote"
);
9
RegisterVariable
(
"varColor"
);
10
11
}
12
13
void
~PluginVariables
()
14
{
15
}
16
17
void
RegisterVariable
(
string
name
)
18
{
19
m_Id
++;
20
m_Variables.Set(
m_Id
,
name
);
//REWORK.V maybe have 2 maps, one with key
21
22
}
23
24
int
m_Id
;
25
ref
map<int, string>
m_Variables
;
26
27
string
GetName
(
int
id
)
28
{
29
return
m_Variables.Get(
id
);
30
}
31
32
int
GetID
(
string
name
)
33
{
34
return
m_Variables.GetKeyByValue(
name
);
35
}
36
}
m_Id
class GetServerModListResult m_Id
GetServersResultRow the output structure of the GetServers operation that represents one game server.
name
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
Param3
Definition
EntityAI.c:95
PluginBase
Definition
PluginBase.c:2
PluginBase::GetName
string GetName(int id)
Definition
PluginVariables.c:27
PluginBase::m_Variables
ref map< int, string > m_Variables
Definition
PluginVariables.c:25
PluginBase::PluginVariables
void PluginVariables()
Definition
PluginVariables.c:3
PluginBase::~PluginVariables
void ~PluginVariables()
Definition
PluginVariables.c:13
PluginBase::RegisterVariable
void RegisterVariable(string name)
Definition
PluginVariables.c:17
PluginBase::m_Id
int m_Id
Definition
PluginVariables.c:24
PluginBase::GetID
int GetID(string name)
Definition
PluginVariables.c:32
scripts
4_World
Plugins
PluginBase
PluginVariables.c
Generated by
1.10.0