Exemplo n.º 1
0
        static IGCSerializableHeader ReadGameCoordinatorHeader(uint rawEMsg, Stream stream)
        {
            IGCSerializableHeader header = null;

            if (MsgUtil.IsProtoBuf(rawEMsg))
            {
                header = new MsgGCHdrProtoBuf();
            }
            else
            {
                header = new MsgGCHdr();
            }

            header.Deserialize(stream);
            return(header);
        }
Exemplo n.º 2
0
        IGCSerializableHeader BuildGCHeader(uint realEMsg, Stream str)
        {
            IGCSerializableHeader hdr = null;

            if (MsgUtil.IsProtoBuf(realEMsg))
            {
                hdr = new MsgGCHdrProtoBuf();
            }
            else
            {
                hdr = new MsgGCHdr();
            }

            hdr.Deserialize(str);
            return(hdr);
        }