Пример #1
0
        static public void SaveTestStateList()
        {
            MonsterTestManager.GetActiveInstance().SaveEntities();

            if (CurrentlyOpenTest != null)
            {
                CurrentlyOpenTest.EditorSaveMonsterTest();
            }

            MonsterTestWindow.GetInstance().SerializeBoxMetadata(true);
        }
Пример #2
0
        public override void SetModifiedState(ModifiedState NewState, string VariableName)
        {
            if (NewState == ModifiedState.PreModify)
            {
            }

            base.SetModifiedState(NewState, VariableName);

            if (NewState == ModifiedState.Modified)
            {
                if (MonsterTestManager.GetActiveInstance() != null)
                {
                    MonsterTestManager.GetActiveInstance().SaveEntities();
                }
            }
        }
Пример #3
0
 public static void Log(string Message)
 {
     if (MonsterTestCore.MonsterTestCoreInst != null && MonsterTestManager.GetActiveInstance() != null)
     {
         if (IgorDebug.Logger != null)
         {
             IgorDebug.Logger.Log(MonsterTestCore.MonsterTestCoreInst, " - " + MonsterTestManager.GetActiveInstance().GetOwnerFilename() + Message);
         }
         else
         {
             Debug.Log("Igor Log: " + MonsterTestCore.MonsterTestCoreInst + " - " + MonsterTestManager.GetActiveInstance().GetOwnerFilename() + " : " + Message);
         }
     }
     else
     {
         CoreLog(Message);
     }
 }
Пример #4
0
        public static void CriticalError(string Message)
        {
            if (MonsterTestCore.MonsterTestCoreInst != null && MonsterTestManager.GetActiveInstance() != null)
            {
                if (IgorDebug.Logger != null)
                {
                    IgorDebug.Logger.CriticalError(MonsterTestCore.MonsterTestCoreInst, " - " + MonsterTestManager.GetActiveInstance().GetOwnerFilename() + Message);
                }
                else
                {
                    Debug.LogError("Igor Error: " + MonsterTestCore.MonsterTestCoreInst + " - " + MonsterTestManager.GetActiveInstance().GetOwnerFilename() + " : " + Message);

                    throw new UnityException(MonsterTestCore.MonsterTestCoreInst + " - " + MonsterTestManager.GetActiveInstance().GetOwnerFilename() + " : " + Message);
                }
            }
            else
            {
                CoreLog(Message);
            }
        }
Пример #5
0
 public override LinkedEntityManager <MonsterTestBase> GetManager()
 {
     return(MonsterTestManager.GetActiveInstance());
 }
Пример #6
0
/*	public virtual void AddLine()
 *      {
 *              Line NewLine = new Line();
 *
 *              SetupNewLineBox(NewLine);
 *      }
 *
 *      public virtual void ConnectLine()
 *      {
 *              Line NewLine = new Line();
 *
 *              NewLine.CreateStaticNodesIfNotPresent();
 *
 *              LineBox NewBox = SetupNewLineBox(NewLine);
 *
 *              if(NewBox.GetAllAnchors().Count > 0)
 *              {
 *                      Anchor<ConversationBase> NewBoxAnchor = NewBox.GetAllAnchors()[0];
 *
 *                      ConnectInputToOutput(NewBoxAnchor, StartingAnchorForNewBox);
 *              }
 *      }
 *
 *      public virtual LineBox SetupNewLineBox(Line NewLine)
 *      {
 *              ConversationManager.AddConversation(NewLine);
 *
 *              LineBox NewBox = new LineBox(ConversationWindow.WindowInstance, NewLine);
 *
 *              NewBox.InitializeNewBox();
 *
 *              NewBox.MoveBoxTo(InputState.GetLocalMousePosition(this, -GetWindowOffset()));
 *
 *              ConversationWindow.WindowInstance.AddBox(NewBox);
 *
 *              return NewBox;
 *      }*/

        public override string GetBoxMetadataFile()
        {
            return(MonsterTestCore.MonsterLocalDirectoryRoot + "/Config/Editor/MonsterTests/MonsterTestBoxes" + MonsterTestManager.GetActiveInstance().GetOwnerFilename() + ".xml");
        }
Пример #7
0
 public override void CreateStaticNodesIfNotPresent()
 {
     MonsterTestManager.GetActiveInstance().CreateStaticNodesIfNotPresent();
 }
Пример #8
0
 public override MonsterTestBase GetLinkedEntityForFilename(string Filename)
 {
     return(MonsterTestManager.GetActiveInstance().GetEntityByFileName(Filename));
 }
Пример #9
0
 public static void LoadTest()
 {
     MonsterTestManager.GetActiveInstance().LoadEntities();
 }
Пример #10
0
 public static string EditorGetUniqueTestStateFilename(string OriginalFilename)
 {
     return(MonsterTestManager.GetActiveInstance().EditorGetUniqueEntityFilename(OriginalFilename));
 }
Пример #11
0
 public static List <MonsterTestBase> EditorGetTestStateList()
 {
     return(MonsterTestManager.GetActiveInstance().Entities);
 }
Пример #12
0
 public static void RemoveTestState(MonsterTestBase TestStateToRemove)
 {
     MonsterTestManager.GetActiveInstance().RemoveEntity(TestStateToRemove);
 }
Пример #13
0
 public static void AddTestState(MonsterTestBase NewTestState)
 {
     MonsterTestManager.GetActiveInstance().AddEntity(NewTestState);
 }
Пример #14
0
 public static void SaveTest()
 {
     MonsterTestManager.GetActiveInstance().SaveEntities();
 }