示例#1
0
    private bool OnSocketSubConfigServer(byte[] data, int dataSize)
    {
        if (dataSize < Marshal.SizeOf(typeof(CMD_GR_ConfigServer)))
        {
            return(false);
        }
        CMD_GR_ConfigServer pConfigServer = NetUtil.BytesToStruct <CMD_GR_ConfigServer>(data);

        return(true);
    }
示例#2
0
    //房间配置
    public void ConFigReolve(byte[] tmpBuf, int size)
    {
        CMD_GR_ConfigServer config = NetUtil.BytesToStruct <CMD_GR_ConfigServer>(tmpBuf);

        MyDebug.Log("###################################" + config);
    }