Beispiel #1
0
        /** 反馈--战斗结束 */
        void S_BattleEnd_0x830(S_BattleEnd_0x830 msg)
        {
            War.endProto = msg;
            WarOverData overData = new WarOverData();

            foreach (ProtoRoleFightResult info in msg.fight_result)
            {
                LegionData legionData = War.GetLegionDataByRoleId(info.roleId);

                WarOverLegionData result = new WarOverLegionData();
                result.roleId     = info.roleId;
                result.legionId   = legionData.legionId;
                result.starCount  = info.star;
                result.buildCount = info.build_count;
                result.buildTotal = info.build_total;
                result.overType   = (OverType)info.end_type;

                if (result.legionId == War.ownLegionID)
                {
                    overData.overType = result.overType;
                }

                overData.legionDatas.Add(result);
            }

            War.S_Over(overData);
        }
Beispiel #2
0
        /** 游戏结束 */
        public void ExeGameOver(WarOverData overData)
        {
//			Debug.Log ("timeLineDatastarCount WarExe ExeGameOver War.isGameing=" + War.isGameing);
            if (War.isGameing)
            {
                War.S_Over(overData);
            }
        }