示例#1
0
    private void RecvPlayerSummary(byte[] args)
    {
        int    pId     = MsgParse.PopInt(ref args);
        int    score   = MsgParse.PopInt(ref args);
        string userId  = MsgParse.PopString(ref args);
        string userLoc = MsgParse.PopString(ref args);

        RoomManager.Instance.rData.SetPlayerData(pId, userId, userLoc, score);
    }
示例#2
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);
        }
    }