DayZ 1.24
Loading...
Searching...
No Matches
PluginVariables.c
Go to the documentation of this file.
1class PluginVariables extends PluginBase
2{
4 {
5 m_Id = 0;
6 m_Variables = new map<int, string>;
7 // ("variable name")
8 RegisterVariable("varNote");
9 RegisterVariable("varColor");
10
11 }
12
14 {
15 }
16
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;
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}
class GetServerModListResult m_Id
GetServersResultRow the output structure of the GetServers operation that represents one game server.
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
string GetName(int id)
ref map< int, string > m_Variables
void PluginVariables()
void ~PluginVariables()
void RegisterVariable(string name)
int GetID(string name)