102    {
  103        int i = 0;
  105        
  106        array<PluginBase> pluginPtrs = {};
  107        pluginPtrs.Reserve(regCount);
  108        
  110        {
  112            if ( moduleExist )
  113            {
  115            }
  116            
  117            PluginBase moduleNew = PluginBase.Cast(pluginType.Spawn());
  119            pluginPtrs.Insert(moduleNew);
  120        }
  121        
  122        foreach (PluginBase plugin : pluginPtrs)
  123        {
  124            if ( plugin )
  125            {
  126                plugin.OnInit();
  127            }
  128        }
  129    }
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