Example #1
0
        public static SetOpenHouseStatus_Event read(BinaryReader binaryReader)
        {
            SetOpenHouseStatus_Event newObj = new SetOpenHouseStatus_Event();

            newObj.i_open_house = binaryReader.ReadInt32();
            Util.readToAlign(binaryReader);
            return(newObj);
        }
Example #2
0
    public override bool acceptMessageData(BinaryReader messageDataReader, TreeView outputTreeView)
    {
        bool handled = true;

        PacketOpcode opcode = Util.readOpcode(messageDataReader);

        switch (opcode)
        {
        case PacketOpcode.Evt_House__QueryHouse_ID:
        case PacketOpcode.Evt_House__AbandonHouse_ID:
        case PacketOpcode.Evt_House__RemoveAllStoragePermission_ID:
        case PacketOpcode.Evt_House__RequestFullGuestList_Event_ID:
        case PacketOpcode.Evt_House__AddAllStoragePermission_ID:
        case PacketOpcode.Evt_House__RemoveAllPermanentGuests_Event_ID:
        case PacketOpcode.Evt_House__BootEveryone_Event_ID:
        case PacketOpcode.Evt_House__TeleToHouse_Event_ID:
        case PacketOpcode.Evt_House__TeleToMansion_Event_ID: {
            EmptyMessage message = new EmptyMessage(opcode);
            message.contributeToTreeView(outputTreeView);
            break;
        }

        // TODO: PacketOpcode.Evt_House__DumpHouse_ID
        case PacketOpcode.Evt_House__BuyHouse_ID: {
            BuyHouse message = BuyHouse.read(messageDataReader);
            message.contributeToTreeView(outputTreeView);
            break;
        }

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

        // TODO: PacketOpcode.Evt_House__StealHouse_ID: {
        case PacketOpcode.Evt_House__RentHouse_ID: {
            RentHouse message = RentHouse.read(messageDataReader);
            message.contributeToTreeView(outputTreeView);
            break;
        }

        // TODO: PacketOpcode.Evt_House__LinkToHouse_ID
        // TODO: PacketOpcode.Evt_House__ReCacheHouse_ID
        case PacketOpcode.Evt_House__Recv_HouseData_ID: {
            Recv_HouseData message = Recv_HouseData.read(messageDataReader);
            message.contributeToTreeView(outputTreeView);
            break;
        }

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

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

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

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

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

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

        // TODO: PacketOpcode.Evt_House__Recv_UpdateRestrictions_ID
        case PacketOpcode.Evt_House__ChangeStoragePermission_Event_ID: {
            ChangeStoragePermission_Event message = ChangeStoragePermission_Event.read(messageDataReader);
            message.contributeToTreeView(outputTreeView);
            break;
        }

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

        // TODO: PacketOpcode.Evt_House__BootAllUninvitedGuests_Event_ID
        // TODO: PacketOpcode.Evt_House__RentPay_ID
        // TODO: PacketOpcode.Evt_House__RentWarn_ID
        // TODO: PacketOpcode.Evt_House__RentDue_ID
        // TODO: PacketOpcode.Evt_House__Recv_UpdateHAR_ID
        case PacketOpcode.Evt_House__QueryLord_ID: {
            QueryLord message = QueryLord.read(messageDataReader);
            message.contributeToTreeView(outputTreeView);
            break;
        }

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

        // TODO: PacketOpcode.Evt_House__RentOverDue_ID
        // TODO: PacketOpcode.Evt_House__QueryHouseOwner_ID
        // TODO: PacketOpcode.Evt_House__AdminTeleToHouse_ID
        // TODO: PacketOpcode.Evt_House__PayRentForAllHouses_ID
        case PacketOpcode.Evt_House__SetHooksVisibility_ID: {
            SetHooksVisibility message = SetHooksVisibility.read(messageDataReader);
            message.contributeToTreeView(outputTreeView);
            break;
        }

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

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

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

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

        // TODO: PacketOpcode.Evt_House__SetMaintenanceFree_ID
        // TODO: PacketOpcode.Evt_House__DumpHouseAccess_ID
        default: {
            handled = false;
            break;
        }
        }

        return(handled);
    }