示例#1
0
    private void RecvNotifyChat(byte[] args)
    {
        int gid = MsgParse.PopInt(ref args);

        if (gid != RoomManager.Instance.rData.gId.Value)
        {
            return;
        }

        int pId = MsgParse.PopInt(ref args);

        MsgParse.PopShort(ref args);
        var content = MsgParse.PopString(ref args);
        var player  = RoomManager.Instance.rData.GetPlayer(pId);

        if (player != null)
        {
            player.tableUI.PopTalk(player.headUI.cardPos, content);
        }
    }