501 {
503 {
504 if (!componentToUnregister)
505 {
506 #ifdef ENABLE_LOGGING
507 Log(
string.Format(
"Invalid bunker to unregister (%1).", componentToUnregister));
508 #endif
509 continue;
510 }
511
513 {
514 #ifdef ENABLE_LOGGING
515 Log(
string.Format(
"Bunker (id=%1) is not registered, cannot unregister.", uid));
516 #endif
517 continue;
518 }
519
522 }
523
525 {
526 if (!componentToRegister)
527 {
528 #ifdef ENABLE_LOGGING
529 Log(
string.Format(
"Invalid bunker to register (%1)", componentToRegister));
530 #endif
531 continue;
532 }
533
535 {
536 #ifdef ENABLE_LOGGING
537 Log(
string.Format(
"Bunker (id=%1) is already registered", rid));
538 #endif
539 continue;
540 }
541
544 }
545 }
void BunkerBroadcastComponentBase(notnull EntityAI parent)
class LogTemplates Log(string message, LogTemplateID template_id=0)
Creates debug log (optional) from LogTemplate which are registred.
ref map< int, ref BunkerBroadcastComponentBase > m_UnregisterQueue
ref map< int, ref BunkerBroadcastComponentBase > m_RegisterQueue
ref map< int, ref BunkerBroadcastComponentBase > m_RegisteredBunkers
how often is update called [seconds]