Ejemplo n.º 1
0
 public PublisherController(
     TableTopDataContext context,
     IMapper mapper,
     ILogger <PublisherController> logger)
 {
     _context = context;
     _mapper  = mapper;
     _logger  = logger;
 }
Ejemplo n.º 2
0
        public DataSeedOrchestrator(TableTopDataContext context, List <IDataSeedPack> dataSeedPacks = null)
        {
            _context = context;

            if (dataSeedPacks != null)
            {
                _dataSeedPacks = new Lazy <List <IDataSeedPack> >(dataSeedPacks);
            }
        }
Ejemplo n.º 3
0
        public void Apply(TableTopDataContext context)
        {
            var takenoko = context.Games
                           .Single(x => x.Title == "Takenoko");

            var ticketToRide = context.Games
                               .Single(x => x.Title == "Ticket to Ride");

            takenoko.Description = @"
                A long time ago at the Japanese Imperial court, the Chinese Emperor offered a giant panda bear as a symbol of peace to the Japanese Emperor. Since then, the Japanese Emperor has entrusted his court members (the players) with the difficult task of caring for the animal by tending to his bamboo garden.

                In Takenoko, the players will cultivate land plots, irrigate them, and grow one of the three species of bamboo (Green, Yellow, and Pink) with the help of the Imperial gardener to maintain this bamboo garden. They will have to bear with the immoderate hunger of this sacred animal for the juicy and tender bamboo. The player who manages his land plots best, growing the most bamboo while feeding the delicate appetite of the panda, will win the game.
            ";

            ticketToRide.Description = @"
                With elegantly simple gameplay, Ticket to Ride can be learned in under 15 minutes. Players collect cards of various types of train cars they then use to claim railway routes in North America. The longer the routes, the more points they earn. Additional points come to those who fulfill Destination Tickets – goal cards that connect distant cities; and to the player who builds the longest continuous route.

                'The rules are simple enough to write on a train ticket – each turn you either draw more cards, claim a route, or get additional Destination Tickets,' says Ticket to Ride author, Alan R. Moon. 'The tension comes from being forced to balance greed – adding more cards to your hand, and fear – losing a critical route to a competitor.'

                Ticket to Ride continues in the tradition of Days of Wonder's big format board games featuring high-quality illustrations and components including: an oversize board map of North America, 225 custom-molded train cars, 144 illustrated cards, and wooden scoring markers.

                Since its introduction and numerous subsequent awards, Ticket to Ride has become the BoardGameGeek epitome of a 'gateway game' - simple enough to be taught in a few minutes, and with enough action and tension to keep new players involved and in the game for the duration.
            ";
        }
Ejemplo n.º 4
0
        public void Apply(TableTopDataContext context)
        {
            var roles = new[]
            {
                new Role {
                    Title = "Game designer"
                },
                new Role {
                    Title = "Illustrator"
                }
            };

            var persons = new[]
            {
                new Person {
                    FirstName = "Alan", LastName = "Moon"
                },
                new Person {
                    FirstName = "Delval", LastName = "Delval"
                },
                new Person {
                    FirstName = "Cyrille", LastName = "Daujean"
                },
                new Person {
                    FirstName = "Antoine", LastName = "Bauza"
                }
            };

            var publishers = new[]
            {
                new Publisher {
                    Title = "Days of Wonder"
                },
                new Publisher {
                    Title = "Bombyx"
                },
            };

            var games = new[]
            {
                new Game
                {
                    Title         = "Ticket to Ride",
                    AgeFrom       = 6,
                    PlayersFrom   = 2,
                    PlayersTo     = 5,
                    Publisher     = publishers[0],
                    YearPublished = 2004,
                    SessionFrom   = 60,
                    SessionTo     = 120
                },
                new Game
                {
                    Title         = "Takenoko",
                    AgeFrom       = 8,
                    PlayersFrom   = 2,
                    PlayersTo     = 4,
                    Publisher     = publishers[1],
                    YearPublished = 2011,
                    SessionFrom   = 45
                }
            };

            var teamMembers = new[]
            {
                new TeamMember {
                    Game = games[0], Person = persons[0], Role = roles[0]
                },
                new TeamMember {
                    Game = games[0], Person = persons[1], Role = roles[1]
                },
                new TeamMember {
                    Game = games[0], Person = persons[2], Role = roles[1]
                },
                new TeamMember {
                    Game = games[1], Person = persons[3], Role = roles[0]
                },
            };

            context.Roles.AddRange(roles);
            context.Persons.AddRange(persons);
            context.Publishers.AddRange(publishers);
            context.Games.AddRange(games);
            context.TeamMembers.AddRange(teamMembers);
        }