Пример #1
0
 /// <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();
 }
Пример #2
0
        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);
            }
        }
Пример #3
0
 public PluginService(BaseDebug debug, GameProcess.GameProcess gameProcess, List <IPluginBase> pluginBases, int precision = 33)
     : base(debug, gameProcess, precision)
 {
     ServiceCollection = pluginBases.Cast <PluginBase>().ToList();
     DebugTest();
 }
Пример #4
0
 public GameWindow(BaseDebug debug, Config config, GameProcess.GameProcess gameProcess)
     : base(debug, gameProcess)
 {
     _config = config;
 }