示例#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 CContractTracker read(BinaryReader binaryReader)
        {
            CContractTracker newObj = new CContractTracker();

            newObj._version           = binaryReader.ReadUInt32();
            newObj._contract_id       = binaryReader.ReadUInt32();
            newObj._contract_stage    = binaryReader.ReadUInt32();
            newObj._time_when_done    = binaryReader.ReadDouble();
            newObj._time_when_repeats = binaryReader.ReadDouble();
            return(newObj);
        }
示例#3
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);
        }