示例#1
0
        /// <summary>
        /// Copy modules information from another instance of this class
        /// </summary>
        /// <param name="in_module_manager"></param>
        public ExpansionManager(ExpansionManager in_module_manager, SettingsFile in_settings_file)
        {
            m_settings_file = in_settings_file;

            // copy main module
            m_main_module_type = in_module_manager.m_main_module_type;

            ExpansionBase main_module = (ExpansionBase)Activator.CreateInstance(m_main_module_type);

            main_module.Initialize(this, -1);

            LoadExpansions();
        }
示例#2
0
 /// <summary>
 /// Initializes this class. Settings must be loaded in the overloaded functions.
 /// </summary>
 /// <param name="in_expansion_manager"></param>
 /// <param name="in_expansion_assembly"></param>
 public virtual void Initialize(ExpansionManager in_expansion_manager, int in_expansion_index)
 {
     ParentManager  = in_expansion_manager;
     ExpansionIndex = in_expansion_index;
 }