Ejemplo n.º 1
0
 public ArtViewModel(Game game, GameArt art)
 {
     Art = art;
     Visitors = game.VisitorByLocation(TypeLocationMap.TypeToLocation[art.Type]);
     VisitorTypeNames = Visitors.Select(v => v.Type.ToString()).ToArray();
     SetTicketStrings(art);
 }
Ejemplo n.º 2
0
 private void SetPlazaCounts(Game game)
 {
     var plazaVisitors = game.VisitorByLocation(GameVisitorLocation.Plaza);
     var plazaInvestorCount = plazaVisitors.Where(v => v.Type == VisitorTicketType.investor).Count();
     var plazaCollectorCount = plazaVisitors.Where(v => v.Type == VisitorTicketType.collector).Count();
     var plazaVipCount = plazaVisitors.Where(v => v.Type == VisitorTicketType.vip).Count();
     PlazaVisitorCounts = new List<int> { plazaInvestorCount, plazaCollectorCount, plazaVipCount };
 }