Ejemplo n.º 1
0
        public BotSummaryViewModel(Hero hero, BotStats stats, TimeSpan uptime)
        {
            DateTime now = DateTime.Now;

            this.Credits        = hero.Credits;
            this.Uridium        = hero.Uridium;
            this.EarnedCredits  = stats.EarnedCredits;
            this.EarnedUridium  = stats.EarnedUridium;
            this.CreditsPerHour = stats.EarnedCredits / (uptime.TotalSeconds + 1.0) * 3600.0;
            this.UridiumPerHour = stats.EarnedUridium / (uptime.TotalSeconds + 1.0) * 3600.0;
            this.Uptime         = uptime.ToString("hh\\:mm\\:ss");
            this.DeathCount     = stats.Deaths;
        }
Ejemplo n.º 2
0
 public BotStats(BotStats b)
 {
     this.EarnedCredits = b.EarnedCredits;
     this.Boxes         = b.Boxes;
     this.Deaths        = b.Deaths;
     this.EarnedEnergy  = b.EarnedEnergy;
     this.EarnedExp     = b.EarnedExp;
     this.EarnedHonor   = b.EarnedHonor;
     this.EarnedJackpot = b.EarnedJackpot;
     this.Double_0      = b.Double_0;
     this.EarnedUridium = b.EarnedUridium;
     this.EarnedX1      = b.EarnedX1;
     this.EarnedX2      = b.EarnedX2;
     this.EarnedX3      = b.EarnedX3;
     this.EarnedX4      = b.EarnedX4;
     this.Spins         = b.Spins;
 }