DayZ
1.29
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
SoundSetMap.c
См. документацию.
1
class
SoundSetMap
2
{
3
ref
static
map<int, string>
m_SoundSetMapIDByID
=
new
map<int, string>
;
4
ref
static
map<string, int>
m_SoundSetMapIDByName
=
new
map<string, int>
;
5
6
static
void
Init
()
7
{
8
string
path
=
"CfgSoundSets"
;
9
10
int
soundCount =
g_Game
.ConfigGetChildrenCount(
path
);
11
12
for
(
int
i = 1; i < soundCount; i++)
13
{
14
string
soundClassName;
15
g_Game
.ConfigGetChildName(
path
, i, soundClassName);
16
m_SoundSetMapIDByID
.Insert(i,soundClassName);
17
m_SoundSetMapIDByName
.Insert(soundClassName,i);
18
//PrintString(soundClassName);
19
}
20
}
21
22
static
string
GetSoundSetName
(
int
id
)
23
{
24
return
m_SoundSetMapIDByID
.Get(
id
);
25
}
26
27
static
int
GetSoundSetID
(
string
name
)
28
{
29
return
m_SoundSetMapIDByName
.Get(
name
);
30
}
31
32
}
name
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
g_Game
DayZGame g_Game
Определения
DayZGame.c:3942
path
string path
Определения
OptionSelectorMultistate.c:142
SoundSetMap::GetSoundSetID
static int GetSoundSetID(string name)
Определения
SoundSetMap.c:27
SoundSetMap::m_SoundSetMapIDByID
static ref map< int, string > m_SoundSetMapIDByID
Определения
SoundSetMap.c:3
SoundSetMap::m_SoundSetMapIDByName
static ref map< string, int > m_SoundSetMapIDByName
Определения
SoundSetMap.c:4
SoundSetMap::Init
static void Init()
Определения
SoundSetMap.c:6
SoundSetMap::GetSoundSetName
static string GetSoundSetName(int id)
Определения
SoundSetMap.c:22
SoundSetMap
Определения
SoundSetMap.c:2
map
Определения
CachedEquipmentStorage.c:4
Ishodniki
scripts
4_World
DayZ
Static
SoundSetMap.c
Создано системой
1.13.2