protected override void Run(ETModel.Session session, Actor_SelectBanker_Ntt message) { Log.Debug($"庄家为:{message.ChairId.ToView()}"); if (GameTools.IsSelf(message.ChairId)) { GameTools.GetUser().GetComponent <GamerUIComponent>().ShowBanker(); } else { GameTools.GetOtherUser(message.ChairId).GetComponent <GamerUIComponent>().ShowBanker(); } GameTools.GetRoomComponent().playerOperateComponent.ShowAddRob(); }
protected override void Run(ETModel.Session session, Actor_XJGameResult_Ntt message) { List <XJResultInfo> Results = message.XJResult; for (int i = 0; i < Results.Count; i++) { XJResultInfo info = Results[i]; Log.Debug($"玩家{info.ChairId.ToView()},当局得分:{info.XJScore}"); if (GameTools.IsSelf(info.ChairId)) { GameTools.GetUser().GetComponent <GamerUIComponent>().UpdateScore(info.AllScore); } else { GameTools.GetOtherUser(info.ChairId).GetComponent <GamerUIComponent>().UpdateScore(info.AllScore); } } GameTools.GetRoomComponent().playerOperateComponent.ShowReady(); }
protected override void Run(ETModel.Session session, Actor_SendCard_Ntt message) { //显示手牌 Log.Debug($"收到手牌:{message.Cards.BytesToString()}"); HandCardComponent handCardComponent = GameTools.GetUser().GetComponent <HandCardComponent>(); handCardComponent.ShowPuke(message.Cards); foreach (KeyValuePair <ushort, Gamer> gamer in Game.Scene.GetComponent <GameDataComponent>().UserInfos) { //如果是自己就跳过 if (gamer.Key == GameTools.GetUser().ChairId) { continue; } //显示其他玩家的背牌 gamer.Value.GetComponent <HandCardComponent>().HideAllPuke(); } GameTools.GetRoomComponent().playerOperateComponent.ShowRob(); }
protected override void Run(ETModel.Session session, Actor_StartShowHand_Ntt message) { Game.Scene.GetComponent <GameDataComponent>().HideAllImg_Banker(); GameTools.GetRoomComponent().playerOperateComponent.ShowTanpai(); }