Esempio n. 1
0
        public uint e; // The client just zeros this out and all pcaps show it as already being set to 0 by the server.

        public static AppraiseDone read(BinaryReader binaryReader)
        {
            AppraiseDone newObj = new AppraiseDone();

            newObj.e = binaryReader.ReadUInt32();
            return(newObj);
        }
Esempio n. 2
0
    public override bool acceptMessageData(BinaryReader messageDataReader, TreeView outputTreeView)
    {
        bool handled = true;

        PacketOpcode opcode = Util.readOpcode(messageDataReader);

        switch (opcode)
        {
        case PacketOpcode.Evt_Item__Appraise_ID: {
            Appraise message = Appraise.read(messageDataReader);
            message.contributeToTreeView(outputTreeView);
            break;
        }

        case PacketOpcode.Evt_Item__UseDone_ID: {
            UseDone message = UseDone.read(messageDataReader);
            message.contributeToTreeView(outputTreeView);
            break;
        }

        case PacketOpcode.Evt_Item__AppraiseDone_ID:
        {
            AppraiseDone message = AppraiseDone.read(messageDataReader);
            message.contributeToTreeView(outputTreeView);
            break;
        }

        case PacketOpcode.Evt_Item__QueryItemMana_ID: {
            QueryItemMana message = QueryItemMana.read(messageDataReader);
            message.contributeToTreeView(outputTreeView);
            break;
        }

        case PacketOpcode.Evt_Item__QueryItemManaResponse_ID: {
            QueryItemManaResponse message = QueryItemManaResponse.read(messageDataReader);
            message.contributeToTreeView(outputTreeView);
            break;
        }

        default: {
            handled = false;
            break;
        }
        }

        return(handled);
    }