Exemple #1
0
    /// <summary>
    /// 服务器广播同意人数
    /// </summary>
    /// <param name="obj"></param>
    private void OnServerBroadcastApplyDisbandSum(byte[] obj)
    {
        //只存数据
        //数据存到模型层
        //当前同意人数 由模型层发消息改变显示
        //PBRoom pbRoom = PBRoom.ParseFrom(obj);
        NN_ROOM_ANSWER_TO_DISMISS proto = NN_ROOM_ANSWER_TO_DISMISS.decode(obj);

        RoomNiuNiuProxy.Instance.AgreeDissolveCount(proto);
    }
        //处理 服务器回复当前同意解散房间人数
        public void AgreeDissolveCount(NN_ROOM_ANSWER_TO_DISMISS proto)
        {
            //------------------------------------SEAT列表-----------------------------------------------------------------

            agreeDissolveCount = proto.getNnSeatList().Count;

            TransferData data = new TransferData();

            data.SetValue <int>("SetADHWindowSum", agreeDissolveCount);
            SendNotification(ConstDefine_NiuNiu.ObKey_SetADHWindowSum, data);//刷新当前同意人数
        }