Пример #1
0
 public MissileWeapon(GameWorld gameWorld, MissileWeaponType missileWeaponType)
 {
     this.missileWeaponType = missileWeaponType.Clone();
     this.missileType       = gameWorld.game.Content.Load <MissileType>(missileWeaponType.missileTypeName);
     Num            = missileWeaponType.maxNum;
     this.gameWorld = gameWorld;
     position[0]    = missileWeaponType.positionIndex1;
     position[1]    = missileWeaponType.positionIndex2;
 }
        /// <summary>
        /// 克隆一个导弹类型
        /// </summary>
        public MissileWeaponType Clone()
        {
            MissileWeaponType mw = (MissileWeaponType)this.MemberwiseClone();

            return(mw);
        }