111 {
112 int i = 0;
114
115 array<PluginBase> pluginPtrs = {};
116 pluginPtrs.Reserve(regCount);
117
119 {
121 if ( moduleExist )
122 {
124 }
125
126 PluginBase moduleNew = PluginBase.Cast(pluginType.Spawn());
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...
ref map< typename, ref PluginBase > m_PluginsPtrs
ref array< typename > m_PluginRegister