예제 #1
0
        public void NewMarch()
        {
            March result = new March();

            result.Step1 = this;
            result.Step  = this.Id;
            result.Game  = this.Game;
            this.March   = result;
        }
예제 #2
0
        public void NewMarch()
        {
            March result = new March
            {
                Step1 = this,
                Step  = this.Id,
                Game  = this.Game
            };

            this.March = result;
        }
예제 #3
0
        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);
        }
예제 #4
0
        static internal March ToMarch(this WCFMarch o, Step step)
        {
            March result = new March();

            result.Step1 = step;

            result.Step          = step.Id;
            result.SourceOrder   = o.SourceOrder;
            result.IsTerrainHold = o.IsTerrainHold;

            foreach (var item in o.MarchUnit)
            {
                result.MarchUnit.Add(item.ToMarchUnit(result));
            }

            return(result);
        }