private void OnDissmissVoteSyn(PacketBase msg) { if (msg.code == 0) { DissmissVoteSyn response = NetSerilizer.DeSerialize <DissmissVoteSyn>(msg.data); MjData player = Game.MJMgr.MjData[response.position]; Action <bool> callback = (ok) => { DoDissmissVoteSyn(ok); }; Game.DialogMgr.PushDialog(UIDialog.DoubleBtnDialog, player.player.nickName + "申请解散房间", "提示", callback); } }
public void DoDissmissVoteSyn(bool ok) { PacketBase msg = new PacketBase() { packetType = PacketType.DissmissVoteSyn }; DissmissVoteSyn request = new DissmissVoteSyn() { agree = ok }; msg.data = NetSerilizer.Serialize(request); SocketNetTools.SendMsg(msg); }