示例#1
0
 //显示总结算
 public void ShowTotalResultInfo(Actor_FiveStar_TotalResult totalResult)
 {
     Show();
     GetBigWinAndPaoShouIndex(totalResult.TotalPlayerResults);
     for (int i = 0; i < totalResult.TotalPlayerResults.Count; i++)
     {
         _totalPlayerInfos[i].SetUI(totalResult.TotalPlayerResults[i]);
     }
     for (int i = totalResult.TotalPlayerResults.Count; i < _totalPlayerInfos.Count; i++)
     {
         _totalPlayerInfos[i].Hide();
     }
 }
        //房间总结算 解散投票也会走这
        public static async void RoomTotalResult(this FiveStarRoom fiveStarRoom)
        {
            Actor_FiveStar_TotalResult actorFiveStarTotalResult = new Actor_FiveStar_TotalResult();

            for (int i = 0; i < fiveStarRoom.FiveStarPlayerDic.Count; i++)
            {
                actorFiveStarTotalResult.TotalPlayerResults.Add(FiveStarTotalPlayerResultFactory.Create(fiveStarRoom.FiveStarPlayerDic[i]));
            }
            fiveStarRoom.BroadcastMssagePlayers(actorFiveStarTotalResult);
            await fiveStarRoom.SaveTotalMiltary();   //房间总结算 存储大局对战记录

            fiveStarRoom.SendMiltaryFriendsCircle(); //发送战绩给亲友圈服
            fiveStarRoom.Dispose();                  //直接销毁房间
        }