Esempio n. 1
0
        public static PrivateUpdateStringEvent read(PacketOpcode opcode, BinaryReader binaryReader)
        {
            var newObj = new PrivateUpdateStringEvent();

            newObj.opcode  = opcode;
            newObj.wts     = binaryReader.ReadByte();
            newObj.stype   = (STypeString)binaryReader.ReadUInt32();
            newObj.padding = Util.readToAlign(binaryReader);
            newObj.val     = PStringChar.read(binaryReader);
            return(newObj);
        }
Esempio n. 2
0
    public override bool acceptMessageData(BinaryReader messageDataReader, TreeView outputTreeView)
    {
        var handled = true;

        var opcode = Util.readOpcode(messageDataReader);

        switch (opcode)
        {
        case PacketOpcode.Evt_Qualities__PrivateRemoveIntEvent_ID: {
            var message = PrivateRemoveQualityEvent <STypeInt> .read(opcode, messageDataReader);

            message.contributeToTreeView(outputTreeView);
            break;
        }

        case PacketOpcode.Evt_Qualities__RemoveIntEvent_ID: {
            var message = RemoveQualityEvent <STypeInt> .read(opcode, messageDataReader);

            message.contributeToTreeView(outputTreeView);
            break;
        }

        case PacketOpcode.Evt_Qualities__PrivateRemoveBoolEvent_ID: {
            var message = PrivateRemoveQualityEvent <STypeBool> .read(opcode, messageDataReader);

            message.contributeToTreeView(outputTreeView);
            break;
        }

        case PacketOpcode.Evt_Qualities__RemoveBoolEvent_ID: {
            var message = RemoveQualityEvent <STypeBool> .read(opcode, messageDataReader);

            message.contributeToTreeView(outputTreeView);
            break;
        }

        case PacketOpcode.Evt_Qualities__PrivateRemoveFloatEvent_ID: {
            var message = PrivateRemoveQualityEvent <STypeFloat> .read(opcode, messageDataReader);

            message.contributeToTreeView(outputTreeView);
            break;
        }

        case PacketOpcode.Evt_Qualities__RemoveFloatEvent_ID: {
            var message = RemoveQualityEvent <STypeFloat> .read(opcode, messageDataReader);

            message.contributeToTreeView(outputTreeView);
            break;
        }

        case PacketOpcode.Evt_Qualities__PrivateRemoveStringEvent_ID: {
            var message = PrivateRemoveQualityEvent <STypeString> .read(opcode, messageDataReader);

            message.contributeToTreeView(outputTreeView);
            break;
        }

        case PacketOpcode.Evt_Qualities__RemoveStringEvent_ID: {
            var message = RemoveQualityEvent <STypeString> .read(opcode, messageDataReader);

            message.contributeToTreeView(outputTreeView);
            break;
        }

        case PacketOpcode.Evt_Qualities__PrivateRemoveDataIDEvent_ID: {
            var message = PrivateRemoveQualityEvent <STypeDID> .read(opcode, messageDataReader);

            message.contributeToTreeView(outputTreeView);
            break;
        }

        case PacketOpcode.Evt_Qualities__RemoveDataIDEvent_ID: {
            var message = RemoveQualityEvent <STypeDID> .read(opcode, messageDataReader);

            message.contributeToTreeView(outputTreeView);
            break;
        }

        case PacketOpcode.Evt_Qualities__PrivateRemoveInstanceIDEvent_ID: {
            var message = PrivateRemoveQualityEvent <STypeIID> .read(opcode, messageDataReader);

            message.contributeToTreeView(outputTreeView);
            break;
        }

        case PacketOpcode.Evt_Qualities__RemoveInstanceIDEvent_ID: {
            var message = RemoveQualityEvent <STypeIID> .read(opcode, messageDataReader);

            message.contributeToTreeView(outputTreeView);
            break;
        }

        case PacketOpcode.Evt_Qualities__PrivateRemovePositionEvent_ID: {
            var message = PrivateRemoveQualityEvent <STypePosition> .read(opcode, messageDataReader);

            message.contributeToTreeView(outputTreeView);
            break;
        }

        case PacketOpcode.Evt_Qualities__RemovePositionEvent_ID: {
            var message = RemoveQualityEvent <STypePosition> .read(opcode, messageDataReader);

            message.contributeToTreeView(outputTreeView);
            break;
        }

        case PacketOpcode.Evt_Qualities__PrivateRemoveInt64Event_ID: {
            var message = PrivateRemoveQualityEvent <STypeInt64> .read(opcode, messageDataReader);

            message.contributeToTreeView(outputTreeView);
            break;
        }

        case PacketOpcode.Evt_Qualities__RemoveInt64Event_ID: {
            var message = RemoveQualityEvent <STypeInt64> .read(opcode, messageDataReader);

            message.contributeToTreeView(outputTreeView);
            break;
        }

        case PacketOpcode.Evt_Qualities__PrivateUpdateInt_ID: {
            var message = PrivateUpdateQualityEvent <STypeInt, int> .read(opcode, messageDataReader);

            message.contributeToTreeView(outputTreeView);
            break;
        }

        case PacketOpcode.Evt_Qualities__UpdateInt_ID: {
            var message = UpdateQualityEvent <STypeInt, int> .read(opcode, messageDataReader);

            message.contributeToTreeView(outputTreeView);
            break;
        }

        case PacketOpcode.Evt_Qualities__PrivateUpdateInt64_ID: {
            var message = PrivateUpdateQualityEvent <STypeInt64, long> .read(opcode, messageDataReader);

            message.contributeToTreeView(outputTreeView);
            break;
        }

        case PacketOpcode.Evt_Qualities__UpdateInt64_ID: {
            var message = UpdateQualityEvent <STypeInt64, long> .read(opcode, messageDataReader);

            message.contributeToTreeView(outputTreeView);
            break;
        }

        case PacketOpcode.Evt_Qualities__PrivateUpdateBool_ID: {
            var message = PrivateUpdateQualityEvent <STypeBool, int> .read(opcode, messageDataReader);

            message.contributeToTreeView(outputTreeView);
            break;
        }

        case PacketOpcode.Evt_Qualities__UpdateBool_ID: {
            var message = UpdateQualityEvent <STypeBool, int> .read(opcode, messageDataReader);

            message.contributeToTreeView(outputTreeView);
            break;
        }

        case PacketOpcode.Evt_Qualities__PrivateUpdateFloat_ID: {
            var message = PrivateUpdateQualityEvent <STypeFloat, double> .read(opcode, messageDataReader);

            message.contributeToTreeView(outputTreeView);
            break;
        }

        case PacketOpcode.Evt_Qualities__UpdateFloat_ID: {
            var message = UpdateQualityEvent <STypeFloat, double> .read(opcode, messageDataReader);

            message.contributeToTreeView(outputTreeView);
            break;
        }

        case PacketOpcode.Evt_Qualities__PrivateUpdateString_ID: {
            var message = PrivateUpdateStringEvent.read(opcode, messageDataReader);
            message.contributeToTreeView(outputTreeView);
            break;
        }

        case PacketOpcode.Evt_Qualities__UpdateString_ID: {
            var message = UpdateStringEvent.read(opcode, messageDataReader);
            message.contributeToTreeView(outputTreeView);
            break;
        }

        case PacketOpcode.Evt_Qualities__PrivateUpdateDataID_ID: {
            var message = PrivateUpdateQualityEvent <STypeDID, uint> .read(opcode, messageDataReader);

            message.contributeToTreeView(outputTreeView);
            break;
        }

        case PacketOpcode.Evt_Qualities__UpdateDataID_ID: {
            var message = UpdateQualityEvent <STypeDID, uint> .read(opcode, messageDataReader);

            message.contributeToTreeView(outputTreeView);
            break;
        }

        case PacketOpcode.Evt_Qualities__PrivateUpdateInstanceID_ID: {
            var message = PrivateUpdateQualityEvent <STypeIID, uint> .read(opcode, messageDataReader);

            message.contributeToTreeView(outputTreeView);
            break;
        }

        case PacketOpcode.Evt_Qualities__UpdateInstanceID_ID: {
            var message = UpdateQualityEvent <STypeIID, uint> .read(opcode, messageDataReader);

            message.contributeToTreeView(outputTreeView);
            break;
        }

        case PacketOpcode.Evt_Qualities__PrivateUpdatePosition_ID: {
            var message = PrivateUpdateQualityEvent <STypePosition, Position> .read(opcode, messageDataReader);

            message.contributeToTreeView(outputTreeView);
            break;
        }

        case PacketOpcode.Evt_Qualities__UpdatePosition_ID: {
            var message = UpdateQualityEvent <STypePosition, Position> .read(opcode, messageDataReader);

            message.contributeToTreeView(outputTreeView);
            break;
        }

        case PacketOpcode.Evt_Qualities__PrivateUpdateSkill_ID: {
            var message = PrivateUpdateQualityEvent <STypeSkill, Skill> .read(opcode, messageDataReader);

            message.contributeToTreeView(outputTreeView);
            break;
        }

        case PacketOpcode.Evt_Qualities__UpdateSkill_ID: {
            var message = UpdateQualityEvent <STypeSkill, Skill> .read(opcode, messageDataReader);

            message.contributeToTreeView(outputTreeView);
            break;
        }

        case PacketOpcode.Evt_Qualities__PrivateUpdateSkillLevel_ID: {
            var message = PrivateUpdateQualityEvent <STypeSkill, int> .read(opcode, messageDataReader);

            message.contributeToTreeView(outputTreeView);
            break;
        }

        case PacketOpcode.Evt_Qualities__UpdateSkillLevel_ID: {
            var message = UpdateQualityEvent <STypeSkill, int> .read(opcode, messageDataReader);

            message.contributeToTreeView(outputTreeView);
            break;
        }

        case PacketOpcode.Evt_Qualities__PrivateUpdateSkillAC_ID: {
            var message = PrivateUpdateQualityEvent <STypeSkill, SKILL_ADVANCEMENT_CLASS> .read(opcode, messageDataReader);

            message.contributeToTreeView(outputTreeView);
            break;
        }

        case PacketOpcode.Evt_Qualities__UpdateSkillAC_ID: {
            var message = UpdateQualityEvent <STypeSkill, SKILL_ADVANCEMENT_CLASS> .read(opcode, messageDataReader);

            message.contributeToTreeView(outputTreeView);
            break;
        }

        case PacketOpcode.Evt_Qualities__PrivateUpdateAttribute_ID: {
            var message = PrivateUpdateQualityEvent <STypeAttribute, Attribute> .read(opcode, messageDataReader);

            message.contributeToTreeView(outputTreeView);
            break;
        }

        case PacketOpcode.Evt_Qualities__UpdateAttribute_ID: {
            var message = UpdateQualityEvent <STypeAttribute, Attribute> .read(opcode, messageDataReader);

            message.contributeToTreeView(outputTreeView);
            break;
        }

        case PacketOpcode.Evt_Qualities__PrivateUpdateAttributeLevel_ID: {
            var message = PrivateUpdateQualityEvent <STypeAttribute, int> .read(opcode, messageDataReader);

            message.contributeToTreeView(outputTreeView);
            break;
        }

        case PacketOpcode.Evt_Qualities__UpdateAttributeLevel_ID: {
            var message = UpdateQualityEvent <STypeAttribute, int> .read(opcode, messageDataReader);

            message.contributeToTreeView(outputTreeView);
            break;
        }

        case PacketOpcode.Evt_Qualities__PrivateUpdateAttribute2nd_ID: {
            var message = PrivateUpdateQualityEvent <STypeAttribute2nd, SecondaryAttribute> .read(opcode, messageDataReader);

            message.contributeToTreeView(outputTreeView);
            break;
        }

        case PacketOpcode.Evt_Qualities__UpdateAttribute2nd_ID: {
            var message = UpdateQualityEvent <STypeAttribute2nd, SecondaryAttribute> .read(opcode, messageDataReader);

            message.contributeToTreeView(outputTreeView);
            break;
        }

        case PacketOpcode.Evt_Qualities__PrivateUpdateAttribute2ndLevel_ID: {
            var message = PrivateUpdateQualityEvent <STypeAttribute2nd, int> .read(opcode, messageDataReader);

            message.contributeToTreeView(outputTreeView);
            break;
        }

        case PacketOpcode.Evt_Qualities__UpdateAttribute2ndLevel_ID: {
            var message = UpdateQualityEvent <STypeAttribute2nd, int> .read(opcode, messageDataReader);

            message.contributeToTreeView(outputTreeView);
            break;
        }

        default: {
            handled = false;
            break;
        }
        }

        return(handled);
    }