Пример #1
0
 public GameLimitsBuilder(string gameName, GameEngineName engineName, IGameLimitsContentProvider limitsContent, VersionNumber version)
 {
     _gameName      = gameName;
     _engineName    = engineName;
     _limitsContent = limitsContent;
     _version       = version;
 }
Пример #2
0
 public GameMathBuilder(string name, GameEngineName engineName, IGameMathContentProvider mathContent, VersionNumber version)
 {
     _gameName    = name;
     _engineName  = engineName;
     _mathContent = mathContent;
     _version     = version;
 }
Пример #3
0
        public IComponentBuilder GetGameLimitsBuilder(string gameName, GameEngineName engineName, VersionNumber proposedVersion)
        {
            var engine = _ggpSolutionParser.GetGameEngineContentProvider(engineName);

            var game = engine.GetGame(gameName);

            return(new GameLimitsBuilder(game.Name, engineName, game.LimitsContent, proposedVersion));
        }
Пример #4
0
        public IGameEngineContentProvider GetGameEngineContentProvider(GameEngineName name)
        {
            var gameEngine = this.GameEngines.FirstOrDefault(c => name == new GameEngineName(c.Name));

            if (gameEngine == null)
            {
                throw new ArgumentException($"Can't find a game engine with name {name}");
            }

            return(gameEngine);
        }
Пример #5
0
 public GameLimitsDeployContent(string componentUniqueId,
                                string gameName,
                                VersionNumber version,
                                GameEngineName engineName,
                                string engineUniqueId,
                                IServerPath projectServerPath,
                                IEnumerable <DeployableFileDefinition> files,
                                string componentDescription,
                                IServerPath distributionServerPath)
     : base(componentUniqueId, gameName, engineName, engineUniqueId, version, projectServerPath, files, componentDescription, distributionServerPath)
 {
 }
Пример #6
0
 public GameDeployContent(string componentUniqueId,
                          string name,
                          GameEngineName engineName,
                          string engineUniqueId,
                          VersionNumber version,
                          IServerPath projectServerPath,
                          IEnumerable <DeployableFileDefinition> files,
                          string componentDescription,
                          IServerPath distributionServerPath)
     : base(componentUniqueId, name, version, projectServerPath, files, componentDescription, distributionServerPath)
 {
     this.EngineName     = engineName;
     this.EngineUniqueId = engineUniqueId;
 }
Пример #7
0
 public GameEnginePublisherPlaceholder(GameEngineName gameEngineName, IEnumerable <IGamePublisherViewModel> games)
 {
     _gameEngineName = gameEngineName;
     this.Games      = games;
 }
Пример #8
0
 public GameEnginePlaceholderViewModel(GameEngineName name, IEnumerable <IGameViewModel> games)
 {
     this.Name  = name.ToString();
     this.Games = new ObservableCollection <IGameViewModel>(games);
 }
Пример #9
0
        public IComponentBuilder GetGameEngineBuilder(GameEngineName engineName, VersionNumber proposedVersion)
        {
            var contentProvider = _ggpSolutionParser.GetGameEngineContentProvider(engineName);

            return(new GameEngineBuilder(contentProvider, proposedVersion));
        }