Esempio n. 1
0
 public void RecordDestroyAchievementBuilding(int buildingNo, AchievementBuildingType type, bool isDropProps)
 {
     if (isDropProps)
     {
         this.m_PropsTrophy.Add(ConfigInterface.Instance.AchievementBuildingConfigHelper.GetAchievementBuildingData(type).NeedPropsType);
     }
     if (BattleDirector.Instance != null)
     {
         DestroyAchievementBuildingInBattleRequestParameter request = new DestroyAchievementBuildingInBattleRequestParameter();
         request.OperateTime           = TimeTickRecorder.Instance.CurrentTimeTick - BattleDirector.Instance.MatchStartTick;
         request.AchievementBuildingNo = buildingNo;
         CommunicationUtility.Instance.DestroyAchievementBuildingInBattle(request);
     }
 }
 public void DestroyAchievementBuildingInBattle(DestroyAchievementBuildingInBattleRequestParameter parameter)
 {
     this.CommunicateWithServer(parameter.GetHashtableFromParameter(), ClientCommandConsts.DESTROY_ACHIEVEMENT_BUILDING_IN_BATTLE_COMMAND);
 }