protected void AddScript(FutbotScriptManager scriptManager) { lock (_scriptPoolLock) { _scriptManagers.Add(scriptManager); scriptManager.RunScript(); } }
public override void DoNextStep(int stepNumber, FutbotScriptManager scriptManager) { switch (stepNumber) { case 1: scriptManager.Authenticate(); break; default: break; } }
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; } }
public abstract void DoNextStep(int stepNumber, FutbotScriptManager scriptManager);
public static void AddScript(FutbotScript script, AuthenticationInfo auth, Fifa fifa) { FutbotScriptManager manager = new FutbotScriptManager(script, auth, fifa); }