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

◆ Init()

void BunkerBroadcastComponentBase::Init ( )
inlineprotected

id is persistent until the parent of component is moved in world

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

23 {
24 if (g_Game.IsServer())
25 {
26 m_OnActivated = new ScriptInvoker();
27 m_OnDeactivated = new ScriptInvoker();
28
29 m_Position = m_Parent.GetWorldPosition();
30
32 m_Id = m_Position.ToString().Hash();
33
34 m_Handler = BunkerBroadcastHandler.GetInstance();
35 if (m_Handler)
36 m_Handler.Register(this);
37 }
38 }
DayZGame g_Game
Определения DayZGame.c:4074
ref ScriptInvoker m_OnDeactivated
Определения BunkerBroadcastComponent.c:15
BunkerBroadcastHandler m_Handler
Определения BunkerBroadcastComponent.c:11
ref ScriptInvoker m_OnActivated
Определения BunkerBroadcastComponent.c:13

Перекрестные ссылки g_Game, BunkerBroadcastHandler::GetInstance(), m_Handler, m_Id, m_OnActivated, m_OnDeactivated, m_Parent и m_Position.