Пример #1
0
        public WCFTerrain ToWCFTerrain()
        {
            WCFTerrain result = new WCFTerrain();

            result.Name        = this.Name;
            result.TerrainType = this.TerrainType;
            result.Supply      = this.Supply;
            result.Power       = this.Power;
            result.Strength    = this.Strength;

            return(result);
        }
Пример #2
0
        static internal Terrain ToTerrain(this WCFTerrain o)
        {
            Terrain result = new Terrain();

            result.Name        = o.Name;
            result.TerrainType = o.TerrainType;
            result.Supply      = o.Supply;
            result.Power       = o.Power;
            result.Strength    = o.Strength;

            return(result);
        }