Exemplo n.º 1
0
 private static void RestoreNearestVariables(SkillLogEntry logEntry)
 {
     if (logEntry == null)
     {
         return;
     }
     if (logEntry.get_LogType() == 6 || logEntry.get_LogType() == 5)
     {
         DebugFlow.RestoreVariables(logEntry);
         return;
     }
     if (logEntry.get_Event() == SkillEvent.get_Finished())
     {
         SkillLogEntry fsmLogEntry = DebugFlow.FindNextLogEntry(logEntry, new SkillLogType[]
         {
             5
         });
         if (fsmLogEntry != null)
         {
             DebugFlow.RestoreVariables(fsmLogEntry);
             return;
         }
     }
     else
     {
         if (DebugFlow.SelectedLogEntryIndex == 0)
         {
             SkillLogEntry fsmLogEntry2 = DebugFlow.FindNextLogEntry(logEntry, new SkillLogType[]
             {
                 6
             });
             if (fsmLogEntry2 != null)
             {
                 DebugFlow.RestoreVariables(fsmLogEntry2);
                 return;
             }
         }
         else
         {
             SkillLogEntry fsmLogEntry3 = DebugFlow.FindPrevLogEntry(logEntry, 6);
             if (fsmLogEntry3 != null)
             {
                 DebugFlow.RestoreVariables(fsmLogEntry3);
             }
         }
     }
 }