示例#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;
 }