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

◆ SendReport()

bool BunkerBroadcastScheduler::SendReport ( TStringArray data,
TStringArray morseData )
inlineprivate

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

229 {
230 if (data.Count() == 0)
231 {
232 //#ifdef ENABLE_LOGGING
233 //Log("Nothing to report.");
234 //#endif
235 return false;
236 }
237
238 BunkerBroadcastManager bbm = GetGame().GetBunkerBroadcastManager();
239 if (bbm)
240 {
241 bbm.SetMessageSpeed(
242 m_Config.playbackSettings.dotDuration,
243 m_Config.playbackSettings.dashDuration,
244 m_Config.playbackSettings.symbolGapDuration,
245 m_Config.playbackSettings.wordGapDuration,
246 );
247 bbm.SetPauseBetweenBunkers(m_Config.playbackSettings.pauseBetweenBunkers);
248 bbm.SetBroadcastBunkerRepeatCount(m_Config.playbackSettings.bunkerRepetitions);
249 bbm.SetBroadcastTotalRepeatCount(m_Config.playbackSettings.messageRepetitions);
250
252
253 #ifdef ENABLE_LOGGING
254 Log("Reporting active bunkers:");
255 int i;
256 for (i = 0; i < data.Count(); i += 2)
257 {
258 Log(string.Format("position:%1 code:%2", data[i], data[i+1]), true);
259 }
260 for (i = 0; i < m_MorseOutputData.Count(); i += 2)
261 {
262 Log(string.Format("Morse position:%1 code:%2", m_MorseOutputData[i], m_MorseOutputData[i+1]), true);
263 }
264
265 Log("Report sent");
266 #endif
267
268 return true;
269 }
270
271 return false;
272 }
class LogTemplates Log(string message, LogTemplateID template_id=0)
Creates debug log (optional) from LogTemplate which are registred.
Определения LogTemplates.c:75
proto native void SetBroadcastBunkerRepeatCount(int count)
proto native void SetPauseBetweenBunkers(float pause)
proto native void SetMessageSpeed(float dotDuration, float dashDuration, float symbolGap, float wordGap)
proto native void SetBroadcastTotalRepeatCount(int count)
proto native void BroadcastTextAsMorse(notnull array< string > inputs, notnull array< string > outputs)
BunkerBroadcastConfigInstance m_Config
Определения BunkerBroadcastScheduler.c:12
ref TStringArray m_MorseOutputData
Определения BunkerBroadcastScheduler.c:9
ref TStringArray m_ReportData
Определения BunkerBroadcastScheduler.c:8
DayZGame GetGame()
Определения gameplay.c:636

Перекрестные ссылки BunkerBroadcastManager::BroadcastTextAsMorse(), GetGame(), Log(), m_Config, m_MorseOutputData, m_ReportData, BunkerBroadcastManager::SetBroadcastBunkerRepeatCount(), BunkerBroadcastManager::SetBroadcastTotalRepeatCount(), BunkerBroadcastManager::SetMessageSpeed(), BunkerBroadcastManager::SetPauseBetweenBunkers() и TStringArray.

Используется в BatchSelected() и OnUpdate().