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

◆ GetData()

static JsonUndergroundTriggers UndergroundAreaLoader::GetData ( )
inlinestaticprivate

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

110 {
111 if (!FileExist(m_Path))
112 {
113 // We fallback to check in data and notify user file was not found in mission
114 PrintToRPT("[WARNING] :: [UndergroundAreaLoader GetData()] :: file not found in MISSION folder, your path is " + m_Path + " Attempting DATA folder");
115
116 string worldName;
117 g_Game.GetWorldName(worldName);
118 m_Path = string.Format("dz/worlds/%1/ce/cfgundergroundtriggers.json", worldName);
119
120 if (!FileExist(m_Path))
121 {
122 PrintToRPT("[WARNING] :: [UndergroundAreaLoader GetData()] ::file not found in DATA folder, your path is " + m_Path);
123 return null; // Nothing could be read, just end here
124 }
125 }
126
127 string errorMessage;
128 JsonUndergroundTriggers data;
129 if (!JsonFileLoader<JsonUndergroundTriggers>.LoadFile(m_Path, data, errorMessage))
130 ErrorEx(errorMessage);
131
132 return data;
133 }
DayZGame g_Game
Определения DayZGame.c:4074
static string m_Path
Определения UndergroundAreaLoader.c:105
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().