public void SwitchesLoop(bool begin) { // TODO: LMAOOOOOOOOO if (begin) { Switches.Clear(); StandBy.Clear(); PositionStandBy.Clear(); } else { _switchesRequired--; } if (_switchesRequired == 0) { new Thread(() => PBEBattle.SelectSwitchesIfValid(_trainer, Switches)) { Name = ThreadName }.Start(); } else { AddMessage($"You must send in {_switchesRequired} Pokémon."); //BattleView.Actions.DisplaySwitches(); } }
public void Format() { Errors = string.Empty; //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ standBy = new StandBy(); standBy.Show(); string text = Content.Document.Text; System.Threading.ThreadPool.QueueUserWorkItem(Format, text); }
public void SwitchesLoop(bool begin) { if (begin) { Switches.Clear(); StandBy.Clear(); PositionStandBy.Clear(); } else { _switchesRequired--; } if (_switchesRequired == 0) { OnSwitchesReady(); } else { BattleView.AddMessage($"You must send in {_switchesRequired} Pokémon.", messageLog: false); BattleView.Actions.DisplaySwitches(); } }
public static extern void SetStandbyTime(IntPtr board, StandBy standbyTime);