/// <summary> /// This is basic asynchronous structure impl. with task result usage. /// </summary> /// <param name="debug"></param> /// <param name="gameProcess"></param> /// <param name="precision">Is used for thread sleep. Lover -> faster but needs more resources.</param> protected BaseAsync(BaseDebug debug, GameProcess.GameProcess gameProcess, int precision = 33) { Precision = precision; Debug = debug; GameProcess = gameProcess; DoWork(); }
public MainWindow() { InitializeComponent(); //test //grid.ShowGridLines = true; try { //set grid columns SetGridDefinitions(); _gameProcess = new GameProcess.GameProcess(grid); //set binding lblTimer.DataContext = _gameProcess; MenuButtonInit(); CountCardDeckLabelInit(); this.MaxHeight = SystemParameters.MaximizedPrimaryScreenHeight; this.MaxWidth = SystemParameters.MaximizedPrimaryScreenWidth; } catch (Exception exception) { MessageBox.Show("Loading error. Message: \n" + exception.Message); } }
public PluginService(BaseDebug debug, GameProcess.GameProcess gameProcess, List <IPluginBase> pluginBases, int precision = 33) : base(debug, gameProcess, precision) { ServiceCollection = pluginBases.Cast <PluginBase>().ToList(); DebugTest(); }
public GameWindow(BaseDebug debug, Config config, GameProcess.GameProcess gameProcess) : base(debug, gameProcess) { _config = config; }