internal WCFMarchUnit ToMarchUnit() { WCFMarchUnit result = new WCFMarchUnit(); result.Id = Guid.NewGuid(); result.Step = this.Step; result.Terrain = this.Terrain; result.Unit = this.Unit; result.UnitType = this.UnitType; return result; }
static internal MarchUnit ToMarchUnit(this WCFMarchUnit o, March march) { MarchUnit result = new MarchUnit(); result.March = march; result.Id = Guid.NewGuid(); result.Step = march.Step; result.Game = march.Game; result.Unit = o.Unit; result.Terrain = o.Terrain; result.UnitType = o.UnitType; return(result); }