DayZ 1.29
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ GetData()

static JsonUndergroundTriggers UndergroundAreaLoader::GetData ( )
inlinestaticprivate

См. определение в файле UndergroundAreaLoader.c строка 108

109 {
110 if (!FileExist(m_Path))
111 {
112 // We fallback to check in data and notify user file was not found in mission
113 PrintToRPT("[WARNING] :: [UndergroundAreaLoader GetData()] :: file not found in MISSION folder, your path is " + m_Path + " Attempting DATA folder");
114
115 string worldName;
116 g_Game.GetWorldName(worldName);
117 m_Path = string.Format("dz/worlds/%1/ce/cfgundergroundtriggers.json", worldName);
118
119 if (!FileExist(m_Path))
120 {
121 PrintToRPT("[WARNING] :: [UndergroundAreaLoader GetData()] ::file not found in DATA folder, your path is " + m_Path);
122 return null; // Nothing could be read, just end here
123 }
124 }
125
126 string errorMessage;
127 JsonUndergroundTriggers data;
128 if (!JsonFileLoader<JsonUndergroundTriggers>.LoadFile(m_Path, data, errorMessage))
129 ErrorEx(errorMessage);
130
131 return data;
132 }
DayZGame g_Game
Определения DayZGame.c:3942
static string m_Path
Определения UndergroundAreaLoader.c:104
proto void PrintToRPT(void var)
Prints content of variable to RPT file (performance warning - each write means fflush!...
enum ShapeType ErrorEx
proto bool FileExist(string name)
Check existence of file.

Перекрестные ссылки ErrorEx, FileExist(), g_Game, m_Path и PrintToRPT().

Используется в Land_WarheadStorage_Bunker_Facility::OnSpawnByObjectSpawner(), Land_WarheadStorage_Main::OnSpawnByObjectSpawner(), SpawnAllTriggerCarriers() и JsonUndergroundTriggers::SpawnParentedTriggers().