public override void LoadData()
        {
            base.LoadData();

            m_scriptsQueue = new Queue<MyStringHash>();
            m_groupScripts = new Dictionary<MyStringHash, MyGroupScriptBase>(MyStringHash.Comparer);
            m_definitions = new Dictionary<MyStringHash, MyScriptedGroupDefinition>(MyStringHash.Comparer);

            LoadScripts(MyPlugins.GameAssembly);
            LoadScripts(MyPlugins.SandboxGameAssembly);

            var definitions = MyDefinitionManager.Static.GetScriptedGroupDefinitions();
            foreach (var def in definitions)
            {
                m_definitions[def.Id.SubtypeId] = def;
            }

            Static = this;
        }
        public override void LoadData()
        {
            base.LoadData();

            m_scriptsQueue = new Queue <MyStringHash>();
            m_groupScripts = new Dictionary <MyStringHash, MyGroupScriptBase>(MyStringHash.Comparer);
            m_definitions  = new Dictionary <MyStringHash, MyScriptedGroupDefinition>(MyStringHash.Comparer);

            LoadScripts(MyPlugins.GameAssembly);
            LoadScripts(MyPlugins.SandboxGameAssembly);

            var definitions = MyDefinitionManager.Static.GetScriptedGroupDefinitions();

            foreach (var def in definitions)
            {
                m_definitions[def.Id.SubtypeId] = def;
            }

            Static = this;
        }
Ejemplo n.º 3
0
        protected override void UnloadData()
        {
            base.UnloadData();

            Static = null;
        }
        protected override void UnloadData()
        {
            base.UnloadData();

            Static = null;
        }