public void viewCastleCallback(ViewCastle_ReturnType returnData)
        {
            if (returnData.Success)
            {
                int num = GameEngine.Instance.World.getSpecial(InterfaceMgr.Instance.SelectedVillage);
                this.closeControl(true);
                InterfaceMgr.Instance.getMainTabBar().selectDummyTab(6);
                int villageID = returnData.villageID;
                int campMode  = 0;
                switch (num)
                {
                case 3:
                    campMode  = 1;
                    villageID = -2;
                    break;

                case 5:
                    campMode  = 2;
                    villageID = -3;
                    break;
                }
                GameEngine.Instance.InitCastleView(returnData.castleMapSnapshot, returnData.castleTroopsSnapshot, returnData.keepLevel, campMode, returnData.defencesLevel, villageID, returnData.landType);
                CastleMapBattlePanel2.fromWorld();
                InterfaceMgr.Instance.castleBattleTimes(returnData.lastCastleTime, returnData.lastTroopTime);
            }
        }
 public void viewCastleCallback(ViewCastle_ReturnType returnData)
 {
     if (returnData.Success)
     {
         this.closeControl(true);
         InterfaceMgr.Instance.getMainTabBar().selectDummyTab(6);
         GameEngine.Instance.InitCastleView(returnData.castleMapSnapshot, returnData.castleTroopsSnapshot, returnData.keepLevel, 0, returnData.defencesLevel, returnData.villageID, returnData.landType);
         CastleMapBattlePanel2.fromWorld();
         InterfaceMgr.Instance.castleBattleTimes(returnData.lastCastleTime, returnData.lastTroopTime);
     }
 }