//房间总结算 解散投票也会走这 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(); //直接销毁房间 }