public DeffRequestVillage(DeffRequestVillage village) { IsSelected = village.IsSelected; X = village.X; Y = village.Y; WallLevel = village.WallLevel; Loyalty = village.Loyalty; Units = new DeffRequestUnits(village.Units); foreach (var attack in village.Attacks) { Attacks.Add(new DeffRequestAttack(attack)); } }
public DeffRequestUnits(DeffRequestUnits units) { Spear = units.Spear; Sword = units.Sword; Axe = units.Axe; Arrow = units.Arrow; Spy = units.Spy; LightCavalry = units.LightCavalry; MountedArcher = units.MountedArcher; HeavyCavalry = units.HeavyCavalry; Ram = units.Ram; Catapult = units.Catapult; Paladin = units.Paladin; Snob = units.Snob; Militia = units.Militia; }