Exemple #1
0
        public void StartInstance(GameData gameData, bool waitForEnd)
        {
            var instance = new ScriptedGameInstance(this, gameData, externalGameUrl, externalGameSSLUrl, GetInstanceSettings(gameData), accountingFacadeFactory.CreateFacade(), reportTracker);

            instance.Start();
            if (waitForEnd)
            {
                instance.WaitReady();
            }
        }
Exemple #2
0
        public void InitializeInstances()
        {
            if (isDisposed)
            {
                return;
            }

            Log(Id, "Initializing game instances...");

            var games = ExternalServiceFacade.GetGameCoreService().GetGames(gameTypeEntity.Id);

            foreach (var game in games)
            {
                var instance = new ScriptedGameInstance(this, game, externalGameUrl, externalGameSSLUrl, GetInstanceSettings(game), accountingFacadeFactory.CreateFacade(), reportTracker);
                instance.Start();
            }
        }