422 {
424 string lockCode;
425
426 #ifdef DIAG_DEVELOPER
427 #ifdef BUNKER_BROADCAST_CHEAT_CODE
428 return "1234";
429 #endif
430 #endif
431
432 bool needGenerate = true;
433
434 while (needGenerate )
435 {
436
437 for (
int i = 0; i <
m_Config.bunkerSettings.lockCodeLength; ++i)
438 {
440 lockCodeArray.Insert(charCode.AsciiToString());
441 }
442
443 lockCode =
string.
Join(
"", lockCodeArray);
445 {
446 needGenerate = true;
447 continue;
448 }
449
450 needGenerate = false;
451
452 break;
453 }
454
455
456
457
458 return lockCode;
459 }
ref BunkerBroadcastConfigInstance m_Config
ref SimpleCircularBuffer< string > m_LockCodeHistory
const int INDEX_NOT_FOUND
class array< Class T > TStringArray
static string Join(string separator, notnull TStringArray tokens)