Exemplo n.º 1
0
        public static FellowshipUpdate read(BinaryReader binaryReader)
        {
            FellowshipUpdate newObj = new FellowshipUpdate();

            newObj.i_iidPlayer    = binaryReader.ReadUInt32();
            newObj.fellow         = Fellow.read(binaryReader);
            newObj.i_uiUpdateType = binaryReader.ReadUInt32();
            return(newObj);
        }
Exemplo n.º 2
0
    public override bool acceptMessageData(BinaryReader messageDataReader, TreeView outputTreeView)
    {
        bool handled = true;

        PacketOpcode opcode = Util.readOpcode(messageDataReader);

        switch (opcode)
        {
        // TODO: PacketOpcode.RECV_QUIT_FELLOW_EVENT = 167, - RETIRED
        // TODO: PacketOpcode.RECV_FELLOWSHIP_UPDATE_EVENT = 175, - RETIRED
        // TODO: PacketOpcode.RECV_UPDATE_FELLOW_EVENT = 176 / 0xB0,
        // TODO: PacketOpcode.RECV_DISMISS_FELLOW_EVENT = 177 / 0xB1,
        // TODO: PacketOpcode.RECV_LOGOFF_FELLOW_EVENT = 178 / 0xB2,
        // TODO: PacketOpcode.RECV_DISBAND_FELLOWSHIP_EVENT = 179 / 0xB3,
        // TODO: PacketOpcode.Evt_Fellowship__Appraise_ID = 202 / 0xCA,
        // TODO: PacketOpcode.Evt_Fellowship__FellowUpdateDone_ID = 457 / 0x1C9 - NO LOGS FOUND
        // TODO: PacketOpcode.Evt_Fellowship__FellowStatsDone_ID = 458 / 0x1CA - NO LOGS FOUND

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

        case PacketOpcode.Evt_Fellowship__Disband_ID:
        {
            EmptyMessage message = new EmptyMessage(opcode);
            message.contributeToTreeView(outputTreeView);
            break;
        }

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

        case PacketOpcode.Evt_Fellowship__Quit_ID:
        case PacketOpcode.Evt_Fellowship__Dismiss_ID:
        {
            FellowshipQuit message = FellowshipQuit.read(messageDataReader);
            message.contributeToTreeView(outputTreeView);
            break;
        }

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

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

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

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

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

        default: {
            handled = false;
            break;
        }
        }

        return(handled);
    }