Esempio n. 1
0
 private void CreateEncounters()
 {
     foreach (var c in _clist)
     {
         //Loop to Create 3 random encounter stat sets
         for (int i = 0; i < 5; i++)
         {
             //Create Encounter and fill with random stats for given Character and User
             var e = new Encounter();
             e.EncounterName = "Fight" + c.CharacterId + _id + i;
             e.UserId        = _id;
             e.CharId        = c.CharacterId;
             e.Kills         = Rand();
             e.Assist        = Rand();
             e.DmgDealt      = Rand();
             e.DmgTaken      = Rand();
             e.Healing       = Rand();
             e.Dropped       = SmRand();
             e.Session       = DateTime.Now.AddDays(Rand());
             _conn.InsertEncounter(e);
         }
     }
 }
 private void SubmitEncounter(Encounter encounter)
 {
     _conn.InsertEncounter(encounter);
 }