예제 #1
0
 protected void AddScript(FutbotScriptManager scriptManager)
 {
     lock (_scriptPoolLock)
     {
         _scriptManagers.Add(scriptManager);
         scriptManager.RunScript();
     }
 }
예제 #2
0
 public override void DoNextStep(int stepNumber, FutbotScriptManager scriptManager)
 {
     switch (stepNumber)
     {
         case 1:
             scriptManager.Authenticate();
             break;
         default:
             break;
     }
 }
예제 #3
0
 public bool NextStep(FutbotScriptManager scriptManager)
 {
     try
     {
         DoNextStep(StepNumber, scriptManager);
         StepNumber++;
         Finished = (StepNumber >= NumSteps);
         return true;
     }
     catch (Exception exc)
     {
         LogManager.Error("Script error:" + exc);
         return false;
     }
 }
예제 #4
0
 public abstract void DoNextStep(int stepNumber, FutbotScriptManager scriptManager);
예제 #5
0
 public static void AddScript(FutbotScript script, AuthenticationInfo auth, Fifa fifa)
 {
     FutbotScriptManager manager = new FutbotScriptManager(script, auth, fifa);
 }