Exemple #1
0
 public void AddEvent(Country country, string mes)
 {
     Ev ev = new Ev{
         message = mes,
         ridcountry = country.rid,
         ridgamer = null,
         turn = null,
         UserId = this.userId
     };
     evRepository.SaveEvent(ev);
 }
Exemple #2
0
 // Перемещаем мехов из этой армии в армию в указанной стране
 public void MoveTo(Country targetCountry)
 {
     Army targetArmy = targetCountry.GetAttackArmy((int)this.ridgamer);
     var mechsList = GetBattleMechs();
     foreach (var mech in mechsList)
     {
         mech.MoveTo(targetArmy.rid);
     }
 }
 public Manufacture(Country _country, Design _design, int? _qnt)
 {
     qnt = _qnt;
     ridcountry = _country.rid;
     riddesign = _design.rid;
 }