Пример #1
0
        public static SendClientContractTracker read(BinaryReader binaryReader)
        {
            SendClientContractTracker newObj = new SendClientContractTracker();

            newObj.contractTracker       = CContractTracker.read(binaryReader);
            newObj.bDeleteContract       = binaryReader.ReadInt32();
            newObj.bSetAsDisplayContract = binaryReader.ReadInt32();
            return(newObj);
        }
Пример #2
0
        public static SendClientContractTracker read(BinaryReader binaryReader)
        {
            SendClientContractTracker newObj = new SendClientContractTracker();

            newObj.contractTracker       = CContractTracker.read(binaryReader);
            newObj.bDeleteContract       = binaryReader.ReadInt32();
            newObj.bSetAsDisplayContract = binaryReader.ReadInt32();
            // NOTE: Retail pcaps have three extra dwords that are not used by the client
            // at the end of the message (message length equals 64).
            // ACE servers will not be sending these so we need to check for that.
            if (binaryReader.BaseStream.Length == 64)
            {
                newObj.retailPcap = true;
                newObj.unused1    = binaryReader.ReadUInt32();
                newObj.unused2    = binaryReader.ReadUInt32();
                newObj.unused3    = binaryReader.ReadUInt32();
            }
            return(newObj);
        }