예제 #1
0
 public static void Execute()
 {
     if (CollabTesting._enumerator != null)
     {
         if (!Collab.instance.AnyJobRunning())
         {
             try
             {
                 if (!CollabTesting._enumerator.MoveNext())
                 {
                     CollabTesting.End();
                 }
                 else
                 {
                     CollabTesting._nextState = CollabTesting._enumerator.Current;
                 }
             }
             catch (Exception)
             {
                 Debug.LogError("Something Went wrong with the test framework itself");
                 throw;
             }
         }
     }
 }
예제 #2
0
 public static void End()
 {
     if (CollabTesting._enumerator != null)
     {
         CollabTesting._runAfter();
         CollabTesting._enumerator = null;
     }
 }
예제 #3
0
        private static void OnJobsCompleted()
        {
            var handler = instance.JobsCompleted;

            if (handler != null)
            {
                handler(instance.collabInfo);
            }
            CollabTesting.OnJobsCompleted();
        }
예제 #4
0
        private static void OnJobsCompleted()
        {
            StateChangedDelegate jobsCompleted = Collab.instance.JobsCompleted;

            if (jobsCompleted != null)
            {
                jobsCompleted(Collab.instance.collabInfo);
            }
            CollabTesting.OnJobsCompleted();
        }
예제 #5
0
 private static void OnAsyncSignalReceived(CollabTesting.AsyncState stateToRemove)
 {
     if ((CollabTesting._nextState & stateToRemove) != CollabTesting.AsyncState.NotWaiting)
     {
         CollabTesting._nextState &= ~stateToRemove;
         if (CollabTesting._nextState == CollabTesting.AsyncState.NotWaiting)
         {
             CollabTesting.Execute();
         }
     }
 }
예제 #6
0
 public static void OnAssetUpdate()
 {
     if ((CollabTesting._nextState & CollabTesting.AsyncState.WaitForAssetUpdate) != CollabTesting.AsyncState.NotWaiting)
     {
         CollabTesting._nextState &= ~CollabTesting.AsyncState.WaitForAssetUpdate;
         if (CollabTesting._nextState == CollabTesting.AsyncState.NotWaiting)
         {
             CollabTesting.Execute();
         }
     }
 }
예제 #7
0
 public static void OnCompleteJob()
 {
     if ((CollabTesting._nextState & CollabTesting.AsyncState.WaitForJobComplete) != CollabTesting.AsyncState.NotWaiting)
     {
         CollabTesting._nextState &= ~CollabTesting.AsyncState.WaitForJobComplete;
         if (CollabTesting._nextState == CollabTesting.AsyncState.NotWaiting)
         {
             CollabTesting.Execute();
         }
     }
 }
예제 #8
0
 public static void OnChannelMessageHandled()
 {
     CollabTesting.OnAsyncSignalReceived(CollabTesting.AsyncState.WaitForChannelMessageHandled);
 }
예제 #9
0
 public static void OnJobsCompleted()
 {
     CollabTesting.OnAsyncSignalReceived(CollabTesting.AsyncState.WaitForJobComplete);
 }
예제 #10
0
 public static void OnCompleteJob()
 {
     CollabTesting.Execute();
 }