Example #1
0
 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);
     }
 }
Example #2
0
    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);
    }