Пример #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);
 }