Example #1
0
        public GameSession Initialization()
        {
            _gameSession = _gameServer.Initialization();

            Logger.Info($"[{GetType().Name}]\t Initialization finished successful.");

            Scheduler.Instance.ScheduleTask(100, 100, GetDataFromServer, null);

            return(_gameSession);
        }
Example #2
0
        public void StartNewGameSession(string scenario)
        {
            var _gameSession = _gameServer.Initialization(scenario);

            Environment.RefreshGameSession(_gameSession);

            UiManager.UiInitialization();

            OnStartGameSession?.Invoke(Environment);

            Scheduler.Instance.ScheduleTask(50, 50, GetDataFromServer, null);
        }