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

◆ PluginsInit()

void PluginManager::PluginsInit ( )
inlineprivate

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

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

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