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

◆ PluginsInit()

void PluginManager::PluginsInit ( )
inlineprivate

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

110 {
111 int i = 0;
112 int regCount = m_PluginRegister.Count();
113
114 array<PluginBase> pluginPtrs = {};
115 pluginPtrs.Reserve(regCount);
116
117 foreach (typename pluginType : m_PluginRegister)
118 {
119 PluginBase moduleExist = GetPluginByType( pluginType );
120 if ( moduleExist )
121 {
122 m_PluginsPtrs.Remove( pluginType );
123 }
124
125 PluginBase moduleNew = PluginBase.Cast(pluginType.Spawn());
126 m_PluginsPtrs.Set(pluginType, moduleNew);
127 pluginPtrs.Insert(moduleNew);
128 }
129
130 foreach (PluginBase plugin : pluginPtrs)
131 {
132 if ( plugin )
133 {
134 plugin.OnInit();
135 }
136 }
137 }
PluginBase GetPluginByType(typename plugin_type)
Returns registred plugin by class type, better is to use global funtion GetPlugin(typename plugin_typ...
Определения PluginManager.c:166
ref map< typename, ref PluginBase > m_PluginsPtrs
Определения PluginManager.c:4
ref array< typename > m_PluginRegister
Определения PluginManager.c:3

Перекрестные ссылки GetPluginByType(), m_PluginRegister и m_PluginsPtrs.