示例#1
0
        static public void FullGraphRefreshFromCurrentData()
        {
            if (WindowInstance != null)
            {
                WindowInstance.ClearAllBoxesAndLinks();

                WindowInstance.PreInit();

                List <MonsterTestBase> AllTestStates = MonsterTestManager.EditorGetTestStateList();

                foreach (MonsterTestBase CurrentTestState in AllTestStates)
                {
                    MonsterTestBaseBox NewBox = (MonsterTestBaseBox)TypeUtils.GetEditorBoxForTypeString(CurrentTestState.GetEntityName(), WindowInstance, CurrentTestState);
                    WindowInstance.AddBox(NewBox);
                }

                WindowInstance.PostInit();
            }
        }
示例#2
0
        static public void ReloadTestFromFile()
        {
            if (WindowInstance != null)
            {
                WindowInstance.ClearAllBoxesAndLinks();

                if (CurrentlyOpenTest != null)
                {
                    MonsterTestManager.SwapActiveMonsterTestManager(CurrentlyOpenTest);
                }

                MonsterTestManager.LoadTest();

                WindowInstance.PreInit();

                List <MonsterTestBase> AllTestStates = MonsterTestManager.EditorGetTestStateList();

                foreach (MonsterTestBase CurrentTestState in AllTestStates)
                {
                    MonsterTestBaseBox NewBox = (MonsterTestBaseBox)TypeUtils.GetEditorBoxForTypeString(CurrentTestState.GetEntityName(), WindowInstance, CurrentTestState);
                    WindowInstance.AddBox(NewBox);
                }

                WindowInstance.PostInit();
            }
        }