◆ GetData()
57 {
59 {
60
61 PrintToRPT(
"[WARNING] :: [UndergroundAreaLoader GetData()] :: file not found in MISSION folder, your path is " +
m_Path +
" Attempting DATA folder");
62
65 m_Path =
string.Format(
"dz/worlds/%1/ce/cfgundergroundtriggers.json",
worldName);
66
68 {
69 PrintToRPT(
"[WARNING] :: [UndergroundAreaLoader GetData()] ::file not found in DATA folder, your path is " +
m_Path);
71 }
72 }
73
78
80 }
Definition UndergroundAreaLoader.c:2
static string m_Path
Definition UndergroundAreaLoader.c:51
proto native CGame GetGame()
proto void PrintToRPT(void var)
Prints content of variable to RPT file (performance warning - each write means fflush!...
proto bool FileExist(string name)
Check existence of file.
Перекрестные ссылки ErrorEx, FileExist(), GetGame(), m_Path и PrintToRPT().
Используется в SpawnAllTriggerCarriers().
◆ OnRPC()
122 {
124
126 {
128 }
129 else
130 {
131 ErrorEx(
"UndergroundAreaLoader datasynced - failed to read");
132 }
133 }
static ref JsonUndergroundTriggers m_JsonData
Definition UndergroundAreaLoader.c:53
Перекрестные ссылки ErrorEx и m_JsonData.
Используется в CGame::OnRPC().
◆ SpawnAllTriggerCarriers()
84 {
86 {
88 }
89
91 {
92 return;
93 }
94
96 {
98 }
99 }
ref array< ref JsonUndergroundAreaTriggerData > Triggers
Definition UndergroundAreaLoader.c:10
static void SpawnTriggerCarrier(int index, JsonUndergroundAreaTriggerData data)
Definition UndergroundAreaLoader.c:101
static JsonUndergroundTriggers GetData()
Definition UndergroundAreaLoader.c:56
Перекрестные ссылки GetData(), m_JsonData и SpawnTriggerCarrier().
Используется в MissionBase::OnInit().
◆ SpawnTriggerCarrier()
◆ SyncDataSend()
◆ m_JsonData
◆ m_Path
string m_Path = "$mission:cfgundergroundtriggers.json" |
|
staticprivate |
Объявления и описания членов класса находятся в файле: