From 62fe5cf277496dfead1d1e838feda1170f6be9bf Mon Sep 17 00:00:00 2001 From: stratic-dev Date: Wed, 9 Oct 2024 09:15:29 +0100 Subject: [PATCH] moved bin 8 out and removed clientctx moved crypto bin8 out of entrance server removed unused clientctx missed import fix accidental commit and rename ack_helpers --- network/clientctx/clientcontext.go | 4 -- .../crypto/bin8/bin8_crypto.go | 2 +- .../crypto/bin8/bin8_crypto_test.go | 2 +- network/mhfpacket/mhfpacket.go | 5 +- network/mhfpacket/msg_ca_exchange_item.go | 5 +- network/mhfpacket/msg_head.go | 6 +-- .../mhfpacket/msg_mhf_accept_read_reward.go | 6 +-- .../mhfpacket/msg_mhf_acquire_cafe_item.go | 5 +- .../mhfpacket/msg_mhf_acquire_dist_item.go | 5 +- .../msg_mhf_acquire_exchange_shop.go | 5 +- network/mhfpacket/msg_mhf_acquire_festa.go | 5 +- ...sg_mhf_acquire_festa_intermediate_prize.go | 5 +- .../msg_mhf_acquire_festa_personal_prize.go | 5 +- .../msg_mhf_acquire_guild_adventure.go | 5 +- .../msg_mhf_acquire_guild_tresure.go | 5 +- .../msg_mhf_acquire_guild_tresure_souvenir.go | 5 +- network/mhfpacket/msg_mhf_acquire_item.go | 5 +- .../mhfpacket/msg_mhf_acquire_monthly_item.go | 5 +- .../msg_mhf_acquire_monthly_reward.go | 5 +- network/mhfpacket/msg_mhf_acquire_title.go | 5 +- .../mhfpacket/msg_mhf_acquire_tournament.go | 5 +- network/mhfpacket/msg_mhf_acquire_ud_item.go | 5 +- network/mhfpacket/msg_mhf_add_achievement.go | 5 +- .../msg_mhf_add_guild_mission_count.go | 5 +- ...add_guild_weekly_bonus_exceptional_user.go | 5 +- .../mhfpacket/msg_mhf_add_kouryou_point.go | 5 +- .../msg_mhf_add_reward_song_count.go | 5 +- network/mhfpacket/msg_mhf_add_ud_point.go | 5 +- .../mhfpacket/msg_mhf_add_ud_tactics_point.go | 5 +- network/mhfpacket/msg_mhf_announce.go | 5 +- .../mhfpacket/msg_mhf_answer_guild_scout.go | 5 +- .../mhfpacket/msg_mhf_apply_bbs_article.go | 5 +- network/mhfpacket/msg_mhf_apply_campaign.go | 5 +- network/mhfpacket/msg_mhf_apply_dist_item.go | 5 +- .../mhfpacket/msg_mhf_arrange_guild_member.go | 5 +- .../msg_mhf_cancel_guild_mission_target.go | 5 +- .../mhfpacket/msg_mhf_cancel_guild_scout.go | 5 +- network/mhfpacket/msg_mhf_caravan_my_rank.go | 5 +- network/mhfpacket/msg_mhf_caravan_my_score.go | 5 +- network/mhfpacket/msg_mhf_caravan_ranking.go | 5 +- network/mhfpacket/msg_mhf_charge_festa.go | 5 +- .../msg_mhf_charge_guild_adventure.go | 5 +- .../msg_mhf_check_daily_cafepoint.go | 5 +- .../mhfpacket/msg_mhf_check_monthly_item.go | 5 +- .../mhfpacket/msg_mhf_check_weekly_stamp.go | 5 +- .../mhfpacket/msg_mhf_contract_mercenary.go | 5 +- network/mhfpacket/msg_mhf_create_guild.go | 5 +- network/mhfpacket/msg_mhf_create_joint.go | 5 +- network/mhfpacket/msg_mhf_create_mercenary.go | 5 +- network/mhfpacket/msg_mhf_debug_post_value.go | 5 +- .../msg_mhf_displayed_achievement.go | 5 +- .../msg_mhf_enter_tournament_quest.go | 5 +- network/mhfpacket/msg_mhf_entry_festa.go | 5 +- .../mhfpacket/msg_mhf_entry_rookie_guild.go | 5 +- network/mhfpacket/msg_mhf_entry_tournament.go | 5 +- .../mhfpacket/msg_mhf_enumerate_airoulist.go | 5 +- .../mhfpacket/msg_mhf_enumerate_campaign.go | 5 +- .../mhfpacket/msg_mhf_enumerate_dist_item.go | 5 +- network/mhfpacket/msg_mhf_enumerate_event.go | 5 +- ..._mhf_enumerate_festa_intermediate_prize.go | 5 +- .../msg_mhf_enumerate_festa_member.go | 5 +- .../msg_mhf_enumerate_festa_personal_prize.go | 5 +- network/mhfpacket/msg_mhf_enumerate_guacot.go | 5 +- network/mhfpacket/msg_mhf_enumerate_guild.go | 5 +- .../mhfpacket/msg_mhf_enumerate_guild_item.go | 5 +- .../msg_mhf_enumerate_guild_member.go | 5 +- .../msg_mhf_enumerate_guild_message_board.go | 5 +- .../msg_mhf_enumerate_guild_tresure.go | 5 +- network/mhfpacket/msg_mhf_enumerate_house.go | 5 +- .../mhfpacket/msg_mhf_enumerate_inv_guild.go | 5 +- network/mhfpacket/msg_mhf_enumerate_item.go | 5 +- .../msg_mhf_enumerate_mercenary_log.go | 5 +- network/mhfpacket/msg_mhf_enumerate_order.go | 5 +- network/mhfpacket/msg_mhf_enumerate_price.go | 5 +- network/mhfpacket/msg_mhf_enumerate_quest.go | 5 +- .../mhfpacket/msg_mhf_enumerate_ranking.go | 5 +- .../msg_mhf_enumerate_rengoku_ranking.go | 5 +- network/mhfpacket/msg_mhf_enumerate_shop.go | 5 +- network/mhfpacket/msg_mhf_enumerate_title.go | 5 +- .../mhfpacket/msg_mhf_enumerate_union_item.go | 5 +- .../mhfpacket/msg_mhf_enumerate_warehouse.go | 5 +- .../msg_mhf_exchange_fpoint_2_item.go | 5 +- .../msg_mhf_exchange_item_2_fpoint.go | 5 +- .../msg_mhf_exchange_kouryou_point.go | 5 +- .../msg_mhf_exchange_weekly_stamp.go | 5 +- .../msg_mhf_generate_ud_guild_map.go | 5 +- network/mhfpacket/msg_mhf_get_achievement.go | 5 +- .../msg_mhf_get_additional_beat_reward.go | 5 +- .../mhfpacket/msg_mhf_get_bbs_sns_status.go | 5 +- .../mhfpacket/msg_mhf_get_bbs_user_status.go | 5 +- network/mhfpacket/msg_mhf_get_boost_right.go | 5 +- network/mhfpacket/msg_mhf_get_boost_time.go | 5 +- .../mhfpacket/msg_mhf_get_boost_time_limit.go | 5 +- .../mhfpacket/msg_mhf_get_box_gacha_info.go | 5 +- .../msg_mhf_get_break_seibatu_level_reward.go | 5 +- .../msg_mhf_get_ca_achievement_hist.go | 5 +- network/mhfpacket/msg_mhf_get_ca_unique_id.go | 5 +- .../mhfpacket/msg_mhf_get_cafe_duration.go | 5 +- .../msg_mhf_get_cafe_duration_bonus_info.go | 5 +- network/mhfpacket/msg_mhf_get_cog_info.go | 5 +- .../msg_mhf_get_daily_mission_master.go | 5 +- .../msg_mhf_get_daily_mission_personal.go | 5 +- .../mhfpacket/msg_mhf_get_dist_description.go | 5 +- network/mhfpacket/msg_mhf_get_earth_status.go | 5 +- network/mhfpacket/msg_mhf_get_earth_value.go | 5 +- .../msg_mhf_get_enhanced_minidata.go | 5 +- .../mhfpacket/msg_mhf_get_equip_skin_hist.go | 5 +- network/mhfpacket/msg_mhf_get_etc_points.go | 5 +- network/mhfpacket/msg_mhf_get_extra_info.go | 5 +- ...msg_mhf_get_fixed_seibatu_ranking_table.go | 5 +- .../msg_mhf_get_fpoint_exchange_list.go | 5 +- .../msg_mhf_get_gacha_play_history.go | 5 +- network/mhfpacket/msg_mhf_get_gacha_point.go | 5 +- network/mhfpacket/msg_mhf_get_gem_info.go | 5 +- .../msg_mhf_get_guild_manage_right.go | 5 +- .../msg_mhf_get_guild_mission_list.go | 5 +- .../msg_mhf_get_guild_mission_record.go | 5 +- .../mhfpacket/msg_mhf_get_guild_scout_list.go | 5 +- .../msg_mhf_get_guild_target_member_num.go | 5 +- .../msg_mhf_get_guild_tresure_souvenir.go | 5 +- ...mhf_get_guild_weekly_bonus_active_count.go | 5 +- .../msg_mhf_get_guild_weekly_bonus_master.go | 5 +- .../msg_mhf_get_keep_login_boost_status.go | 5 +- network/mhfpacket/msg_mhf_get_kiju_info.go | 5 +- .../mhfpacket/msg_mhf_get_kouryou_point.go | 5 +- network/mhfpacket/msg_mhf_get_lobby_crowd.go | 5 +- network/mhfpacket/msg_mhf_get_myhouse_info.go | 5 +- network/mhfpacket/msg_mhf_get_notice.go | 5 +- network/mhfpacket/msg_mhf_get_paper_data.go | 5 +- .../mhfpacket/msg_mhf_get_rand_from_table.go | 5 +- .../msg_mhf_get_reject_guild_scout.go | 5 +- .../mhfpacket/msg_mhf_get_rengoku_binary.go | 5 +- .../msg_mhf_get_rengoku_ranking_rank.go | 5 +- .../msg_mhf_get_restriction_event.go | 5 +- network/mhfpacket/msg_mhf_get_reward_song.go | 5 +- network/mhfpacket/msg_mhf_get_ryoudama.go | 5 +- network/mhfpacket/msg_mhf_get_seibattle.go | 5 +- .../msg_mhf_get_senyu_daily_count.go | 5 +- .../mhfpacket/msg_mhf_get_stepup_status.go | 5 +- network/mhfpacket/msg_mhf_get_tenrouirai.go | 5 +- network/mhfpacket/msg_mhf_get_tiny_bin.go | 5 +- network/mhfpacket/msg_mhf_get_tower_info.go | 5 +- network/mhfpacket/msg_mhf_get_trend_weapon.go | 5 +- .../msg_mhf_get_ud_bonus_quest_info.go | 5 +- .../msg_mhf_get_ud_daily_present_list.go | 5 +- .../msg_mhf_get_ud_guild_map_info.go | 5 +- network/mhfpacket/msg_mhf_get_ud_info.go | 5 +- .../mhfpacket/msg_mhf_get_ud_monster_point.go | 5 +- network/mhfpacket/msg_mhf_get_ud_my_point.go | 5 +- .../mhfpacket/msg_mhf_get_ud_my_ranking.go | 5 +- .../msg_mhf_get_ud_norma_present_list.go | 5 +- network/mhfpacket/msg_mhf_get_ud_ranking.go | 5 +- .../msg_mhf_get_ud_ranking_reward_list.go | 5 +- network/mhfpacket/msg_mhf_get_ud_schedule.go | 5 +- .../msg_mhf_get_ud_selected_color_info.go | 5 +- network/mhfpacket/msg_mhf_get_ud_shop_coin.go | 5 +- .../msg_mhf_get_ud_tactics_bonus_quest.go | 5 +- ...sg_mhf_get_ud_tactics_first_quest_bonus.go | 5 +- .../msg_mhf_get_ud_tactics_follower.go | 5 +- .../mhfpacket/msg_mhf_get_ud_tactics_log.go | 5 +- .../mhfpacket/msg_mhf_get_ud_tactics_point.go | 5 +- .../msg_mhf_get_ud_tactics_ranking.go | 5 +- .../msg_mhf_get_ud_tactics_remaining_point.go | 5 +- .../msg_mhf_get_ud_tactics_reward_list.go | 5 +- .../msg_mhf_get_ud_total_point_info.go | 5 +- .../mhfpacket/msg_mhf_get_weekly_schedule.go | 5 +- ...g_mhf_get_weekly_seibatu_ranking_reward.go | 5 +- network/mhfpacket/msg_mhf_guild_huntdata.go | 5 +- network/mhfpacket/msg_mhf_info_festa.go | 5 +- network/mhfpacket/msg_mhf_info_guild.go | 5 +- network/mhfpacket/msg_mhf_info_joint.go | 5 +- .../msg_mhf_info_scenario_counter.go | 5 +- network/mhfpacket/msg_mhf_info_tournament.go | 5 +- .../mhfpacket/msg_mhf_kick_export_force.go | 5 +- network/mhfpacket/msg_mhf_list_mail.go | 5 +- network/mhfpacket/msg_mhf_list_member.go | 5 +- network/mhfpacket/msg_mhf_load_deco_myset.go | 5 +- .../mhfpacket/msg_mhf_load_favorite_quest.go | 5 +- .../mhfpacket/msg_mhf_load_guild_adventure.go | 5 +- .../mhfpacket/msg_mhf_load_guild_cooking.go | 5 +- network/mhfpacket/msg_mhf_load_house.go | 5 +- network/mhfpacket/msg_mhf_load_hunter_navi.go | 5 +- .../mhfpacket/msg_mhf_load_legend_dispatch.go | 5 +- network/mhfpacket/msg_mhf_load_mezfes_data.go | 5 +- network/mhfpacket/msg_mhf_load_otomo_airou.go | 5 +- network/mhfpacket/msg_mhf_load_partner.go | 5 +- network/mhfpacket/msg_mhf_load_plate_box.go | 5 +- network/mhfpacket/msg_mhf_load_plate_data.go | 5 +- network/mhfpacket/msg_mhf_load_plate_myset.go | 5 +- .../mhfpacket/msg_mhf_load_rengoku_data.go | 5 +- .../mhfpacket/msg_mhf_load_scenario_data.go | 5 +- network/mhfpacket/msg_mhf_loaddata.go | 5 +- .../mhfpacket/msg_mhf_mercenary_huntdata.go | 5 +- network/mhfpacket/msg_mhf_operate_guild.go | 5 +- .../mhfpacket/msg_mhf_operate_guild_member.go | 5 +- .../msg_mhf_operate_guild_tresure_report.go | 5 +- network/mhfpacket/msg_mhf_operate_joint.go | 5 +- .../mhfpacket/msg_mhf_operate_warehouse.go | 5 +- .../mhfpacket/msg_mhf_operation_inv_guild.go | 5 +- network/mhfpacket/msg_mhf_opr_member.go | 5 +- network/mhfpacket/msg_mhf_oprt_mail.go | 5 +- .../mhfpacket/msg_mhf_payment_achievement.go | 5 +- network/mhfpacket/msg_mhf_play_box_gacha.go | 5 +- network/mhfpacket/msg_mhf_play_free_gacha.go | 5 +- .../mhfpacket/msg_mhf_play_normal_gacha.go | 5 +- .../mhfpacket/msg_mhf_play_stepup_gacha.go | 5 +- network/mhfpacket/msg_mhf_post_boost_time.go | 5 +- .../msg_mhf_post_boost_time_limit.go | 5 +- .../msg_mhf_post_boost_time_quest_return.go | 5 +- ...g_mhf_post_cafe_duration_bonus_received.go | 5 +- network/mhfpacket/msg_mhf_post_gem_info.go | 5 +- network/mhfpacket/msg_mhf_post_guild_scout.go | 5 +- network/mhfpacket/msg_mhf_post_notice.go | 5 +- network/mhfpacket/msg_mhf_post_ryoudama.go | 5 +- network/mhfpacket/msg_mhf_post_seibattle.go | 5 +- network/mhfpacket/msg_mhf_post_tenrouirai.go | 5 +- network/mhfpacket/msg_mhf_post_tiny_bin.go | 5 +- network/mhfpacket/msg_mhf_post_tower_info.go | 5 +- network/mhfpacket/msg_mhf_present_box.go | 5 +- network/mhfpacket/msg_mhf_read_beat_level.go | 5 +- .../msg_mhf_read_beat_level_all_ranking.go | 5 +- .../msg_mhf_read_beat_level_my_ranking.go | 5 +- network/mhfpacket/msg_mhf_read_guildcard.go | 5 +- .../msg_mhf_read_last_week_beat_ranking.go | 5 +- network/mhfpacket/msg_mhf_read_mail.go | 5 +- network/mhfpacket/msg_mhf_read_mercenary_m.go | 5 +- network/mhfpacket/msg_mhf_read_mercenary_w.go | 5 +- .../msg_mhf_receive_cafe_duration_bonus.go | 5 +- .../mhfpacket/msg_mhf_receive_gacha_item.go | 5 +- .../msg_mhf_regist_guild_adventure.go | 5 +- .../msg_mhf_regist_guild_adventure_diva.go | 5 +- .../mhfpacket/msg_mhf_regist_guild_cooking.go | 5 +- .../mhfpacket/msg_mhf_regist_guild_tresure.go | 5 +- .../mhfpacket/msg_mhf_regist_spabi_time.go | 5 +- network/mhfpacket/msg_mhf_register_event.go | 5 +- network/mhfpacket/msg_mhf_release_event.go | 5 +- network/mhfpacket/msg_mhf_reserve10f.go | 5 +- .../mhfpacket/msg_mhf_reset_achievement.go | 5 +- .../mhfpacket/msg_mhf_reset_box_gacha_info.go | 5 +- network/mhfpacket/msg_mhf_reset_title.go | 5 +- network/mhfpacket/msg_mhf_save_deco_myset.go | 5 +- .../mhfpacket/msg_mhf_save_favorite_quest.go | 5 +- network/mhfpacket/msg_mhf_save_hunter_navi.go | 5 +- network/mhfpacket/msg_mhf_save_mercenary.go | 5 +- network/mhfpacket/msg_mhf_save_mezfes_data.go | 5 +- network/mhfpacket/msg_mhf_save_otomo_airou.go | 5 +- network/mhfpacket/msg_mhf_save_partner.go | 5 +- network/mhfpacket/msg_mhf_save_plate_box.go | 5 +- network/mhfpacket/msg_mhf_save_plate_data.go | 5 +- network/mhfpacket/msg_mhf_save_plate_myset.go | 5 +- .../mhfpacket/msg_mhf_save_rengoku_data.go | 5 +- .../mhfpacket/msg_mhf_save_scenario_data.go | 5 +- network/mhfpacket/msg_mhf_savedata.go | 5 +- network/mhfpacket/msg_mhf_send_mail.go | 5 +- network/mhfpacket/msg_mhf_server_command.go | 5 +- .../mhfpacket/msg_mhf_set_ca_achievement.go | 5 +- .../msg_mhf_set_ca_achievement_hist.go | 5 +- .../msg_mhf_set_daily_mission_personal.go | 5 +- .../msg_mhf_set_enhanced_minidata.go | 5 +- .../msg_mhf_set_guild_manage_right.go | 5 +- .../msg_mhf_set_guild_mission_target.go | 5 +- network/mhfpacket/msg_mhf_set_kiju.go | 5 +- network/mhfpacket/msg_mhf_set_loginwindow.go | 5 +- .../msg_mhf_set_reject_guild_scout.go | 5 +- .../msg_mhf_set_restriction_event.go | 5 +- .../msg_mhf_set_ud_tactics_follower.go | 5 +- network/mhfpacket/msg_mhf_sex_changer.go | 5 +- network/mhfpacket/msg_mhf_shut_client.go | 5 +- network/mhfpacket/msg_mhf_stampcard_prize.go | 5 +- network/mhfpacket/msg_mhf_stampcard_stamp.go | 5 +- network/mhfpacket/msg_mhf_start_boost_time.go | 5 +- network/mhfpacket/msg_mhf_state_campaign.go | 5 +- network/mhfpacket/msg_mhf_state_festa_g.go | 5 +- network/mhfpacket/msg_mhf_state_festa_u.go | 5 +- network/mhfpacket/msg_mhf_transfer_item.go | 5 +- network/mhfpacket/msg_mhf_transit_message.go | 5 +- network/mhfpacket/msg_mhf_unreserve_srg.go | 5 +- .../mhfpacket/msg_mhf_update_beat_level.go | 5 +- network/mhfpacket/msg_mhf_update_cafepoint.go | 5 +- .../msg_mhf_update_equip_skin_hist.go | 5 +- network/mhfpacket/msg_mhf_update_etc_point.go | 5 +- .../msg_mhf_update_force_guild_rank.go | 5 +- network/mhfpacket/msg_mhf_update_guacot.go | 5 +- network/mhfpacket/msg_mhf_update_guild.go | 5 +- .../mhfpacket/msg_mhf_update_guild_icon.go | 5 +- .../mhfpacket/msg_mhf_update_guild_item.go | 5 +- .../msg_mhf_update_guild_message_board.go | 5 +- network/mhfpacket/msg_mhf_update_guildcard.go | 5 +- network/mhfpacket/msg_mhf_update_house.go | 5 +- network/mhfpacket/msg_mhf_update_interior.go | 5 +- .../mhfpacket/msg_mhf_update_myhouse_info.go | 5 +- .../mhfpacket/msg_mhf_update_union_item.go | 5 +- .../msg_mhf_update_use_trend_weapon_log.go | 5 +- network/mhfpacket/msg_mhf_update_warehouse.go | 5 +- network/mhfpacket/msg_mhf_use_gacha_point.go | 5 +- .../mhfpacket/msg_mhf_use_keep_login_boost.go | 5 +- network/mhfpacket/msg_mhf_use_reward_song.go | 5 +- network/mhfpacket/msg_mhf_use_ud_shop_coin.go | 5 +- network/mhfpacket/msg_mhf_vote_festa.go | 5 +- network/mhfpacket/msg_sys_ack.go | 5 +- .../mhfpacket/msg_sys_acquire_semaphore.go | 5 +- network/mhfpacket/msg_sys_add_object.go | 5 +- network/mhfpacket/msg_sys_auth_data.go | 5 +- network/mhfpacket/msg_sys_auth_query.go | 5 +- network/mhfpacket/msg_sys_auth_terminal.go | 5 +- network/mhfpacket/msg_sys_back_stage.go | 5 +- network/mhfpacket/msg_sys_cast_binary.go | 5 +- network/mhfpacket/msg_sys_casted_binary.go | 5 +- network/mhfpacket/msg_sys_check_semaphore.go | 5 +- network/mhfpacket/msg_sys_cleanup_object.go | 5 +- network/mhfpacket/msg_sys_close_mutex.go | 5 +- network/mhfpacket/msg_sys_collect_binary.go | 5 +- .../msg_sys_create_acquire_semaphore.go | 5 +- network/mhfpacket/msg_sys_create_mutex.go | 5 +- network/mhfpacket/msg_sys_create_object.go | 5 +- .../mhfpacket/msg_sys_create_open_mutex.go | 5 +- network/mhfpacket/msg_sys_create_semaphore.go | 5 +- network/mhfpacket/msg_sys_create_stage.go | 5 +- network/mhfpacket/msg_sys_del_object.go | 5 +- network/mhfpacket/msg_sys_delete_mutex.go | 5 +- network/mhfpacket/msg_sys_delete_object.go | 5 +- network/mhfpacket/msg_sys_delete_semaphore.go | 5 +- network/mhfpacket/msg_sys_delete_user.go | 5 +- network/mhfpacket/msg_sys_disp_object.go | 5 +- network/mhfpacket/msg_sys_duplicate_object.go | 5 +- network/mhfpacket/msg_sys_echo.go | 5 +- network/mhfpacket/msg_sys_end.go | 5 +- network/mhfpacket/msg_sys_enter_stage.go | 5 +- network/mhfpacket/msg_sys_enumerate_client.go | 5 +- network/mhfpacket/msg_sys_enumerate_stage.go | 5 +- network/mhfpacket/msg_sys_enumlobby.go | 5 +- network/mhfpacket/msg_sys_enumuser.go | 5 +- network/mhfpacket/msg_sys_extend_threshold.go | 5 +- network/mhfpacket/msg_sys_get_file.go | 5 +- .../mhfpacket/msg_sys_get_object_binary.go | 5 +- network/mhfpacket/msg_sys_get_object_owner.go | 5 +- network/mhfpacket/msg_sys_get_stage_binary.go | 5 +- network/mhfpacket/msg_sys_get_state.go | 5 +- network/mhfpacket/msg_sys_get_user_binary.go | 5 +- network/mhfpacket/msg_sys_hide_client.go | 5 +- network/mhfpacket/msg_sys_hide_object.go | 5 +- network/mhfpacket/msg_sys_infokyserver.go | 5 +- network/mhfpacket/msg_sys_insert_user.go | 5 +- network/mhfpacket/msg_sys_issue_logkey.go | 5 +- network/mhfpacket/msg_sys_leave_stage.go | 5 +- network/mhfpacket/msg_sys_load_register.go | 5 +- network/mhfpacket/msg_sys_lock_global_sema.go | 5 +- network/mhfpacket/msg_sys_lock_stage.go | 5 +- network/mhfpacket/msg_sys_login.go | 5 +- network/mhfpacket/msg_sys_logout.go | 5 +- network/mhfpacket/msg_sys_move_stage.go | 5 +- network/mhfpacket/msg_sys_nop.go | 5 +- network/mhfpacket/msg_sys_notify_register.go | 5 +- .../mhfpacket/msg_sys_notify_user_binary.go | 5 +- network/mhfpacket/msg_sys_open_mutex.go | 5 +- network/mhfpacket/msg_sys_operate_register.go | 5 +- network/mhfpacket/msg_sys_ping.go | 5 +- network/mhfpacket/msg_sys_position_object.go | 5 +- network/mhfpacket/msg_sys_record_log.go | 5 +- .../mhfpacket/msg_sys_release_semaphore.go | 5 +- network/mhfpacket/msg_sys_reserve01.go | 5 +- network/mhfpacket/msg_sys_reserve02.go | 5 +- network/mhfpacket/msg_sys_reserve03.go | 5 +- network/mhfpacket/msg_sys_reserve04.go | 5 +- network/mhfpacket/msg_sys_reserve05.go | 5 +- network/mhfpacket/msg_sys_reserve06.go | 5 +- network/mhfpacket/msg_sys_reserve07.go | 5 +- network/mhfpacket/msg_sys_reserve0c.go | 5 +- network/mhfpacket/msg_sys_reserve0d.go | 5 +- network/mhfpacket/msg_sys_reserve0e.go | 5 +- network/mhfpacket/msg_sys_reserve180.go | 5 +- network/mhfpacket/msg_sys_reserve188.go | 5 +- network/mhfpacket/msg_sys_reserve18b.go | 5 +- network/mhfpacket/msg_sys_reserve18e.go | 5 +- network/mhfpacket/msg_sys_reserve18f.go | 5 +- network/mhfpacket/msg_sys_reserve192.go | 5 +- network/mhfpacket/msg_sys_reserve193.go | 5 +- network/mhfpacket/msg_sys_reserve194.go | 5 +- network/mhfpacket/msg_sys_reserve19b.go | 5 +- network/mhfpacket/msg_sys_reserve19e.go | 5 +- network/mhfpacket/msg_sys_reserve19f.go | 5 +- network/mhfpacket/msg_sys_reserve1a4.go | 5 +- network/mhfpacket/msg_sys_reserve1a6.go | 5 +- network/mhfpacket/msg_sys_reserve1a7.go | 5 +- network/mhfpacket/msg_sys_reserve1a8.go | 5 +- network/mhfpacket/msg_sys_reserve1a9.go | 5 +- network/mhfpacket/msg_sys_reserve1aa.go | 5 +- network/mhfpacket/msg_sys_reserve1ab.go | 5 +- network/mhfpacket/msg_sys_reserve1ac.go | 5 +- network/mhfpacket/msg_sys_reserve1ad.go | 5 +- network/mhfpacket/msg_sys_reserve1ae.go | 5 +- network/mhfpacket/msg_sys_reserve1af.go | 5 +- network/mhfpacket/msg_sys_reserve4a.go | 5 +- network/mhfpacket/msg_sys_reserve4b.go | 5 +- network/mhfpacket/msg_sys_reserve4c.go | 5 +- network/mhfpacket/msg_sys_reserve4d.go | 5 +- network/mhfpacket/msg_sys_reserve4e.go | 5 +- network/mhfpacket/msg_sys_reserve4f.go | 5 +- network/mhfpacket/msg_sys_reserve55.go | 5 +- network/mhfpacket/msg_sys_reserve56.go | 5 +- network/mhfpacket/msg_sys_reserve57.go | 5 +- network/mhfpacket/msg_sys_reserve5c.go | 5 +- network/mhfpacket/msg_sys_reserve5e.go | 5 +- network/mhfpacket/msg_sys_reserve5f.go | 5 +- network/mhfpacket/msg_sys_reserve71.go | 5 +- network/mhfpacket/msg_sys_reserve72.go | 5 +- network/mhfpacket/msg_sys_reserve73.go | 5 +- network/mhfpacket/msg_sys_reserve74.go | 5 +- network/mhfpacket/msg_sys_reserve75.go | 5 +- network/mhfpacket/msg_sys_reserve76.go | 5 +- network/mhfpacket/msg_sys_reserve77.go | 5 +- network/mhfpacket/msg_sys_reserve78.go | 5 +- network/mhfpacket/msg_sys_reserve79.go | 5 +- network/mhfpacket/msg_sys_reserve7a.go | 5 +- network/mhfpacket/msg_sys_reserve7b.go | 5 +- network/mhfpacket/msg_sys_reserve7c.go | 5 +- network/mhfpacket/msg_sys_reserve7e.go | 5 +- network/mhfpacket/msg_sys_reserve_stage.go | 5 +- network/mhfpacket/msg_sys_rights_reload.go | 5 +- network/mhfpacket/msg_sys_rotate_object.go | 5 +- network/mhfpacket/msg_sys_serialize.go | 5 +- .../mhfpacket/msg_sys_set_object_binary.go | 5 +- network/mhfpacket/msg_sys_set_stage_binary.go | 5 +- network/mhfpacket/msg_sys_set_stage_pass.go | 5 +- network/mhfpacket/msg_sys_set_status.go | 5 +- network/mhfpacket/msg_sys_set_user_binary.go | 5 +- network/mhfpacket/msg_sys_stage_destruct.go | 5 +- network/mhfpacket/msg_sys_terminal_log.go | 5 +- network/mhfpacket/msg_sys_time.go | 5 +- network/mhfpacket/msg_sys_trans_binary.go | 5 +- .../mhfpacket/msg_sys_unlock_global_sema.go | 5 +- network/mhfpacket/msg_sys_unlock_stage.go | 5 +- network/mhfpacket/msg_sys_unreserve_stage.go | 5 +- .../mhfpacket/msg_sys_update_object_binary.go | 5 +- network/mhfpacket/msg_sys_update_right.go | 5 +- .../mhfpacket/msg_sys_wait_stage_binary.go | 5 +- server/channelserver/ack_helpers.go | 54 +++++++++++++++++++ server/channelserver/handlers.go | 48 ----------------- server/channelserver/handlers_cast_binary.go | 10 ++-- server/channelserver/handlers_mail.go | 2 +- server/channelserver/handlers_register.go | 6 +-- server/channelserver/handlers_stage.go | 6 +-- server/channelserver/sys_channel_server.go | 2 +- server/channelserver/sys_semaphore.go | 2 +- server/channelserver/sys_session.go | 19 +++---- server/channelserver/sys_stage.go | 2 +- server/entranceserver/make_resp.go | 8 +-- 447 files changed, 949 insertions(+), 1385 deletions(-) delete mode 100644 network/clientctx/clientcontext.go rename server/entranceserver/crypto.go => network/crypto/bin8/bin8_crypto.go (98%) rename server/entranceserver/crypto_test.go => network/crypto/bin8/bin8_crypto_test.go (98%) create mode 100644 server/channelserver/ack_helpers.go diff --git a/network/clientctx/clientcontext.go b/network/clientctx/clientcontext.go deleted file mode 100644 index 021ae3299..000000000 --- a/network/clientctx/clientcontext.go +++ /dev/null @@ -1,4 +0,0 @@ -package clientctx - -// ClientContext holds contextual data required for packet encoding/decoding. -type ClientContext struct{} // Unused diff --git a/server/entranceserver/crypto.go b/network/crypto/bin8/bin8_crypto.go similarity index 98% rename from server/entranceserver/crypto.go rename to network/crypto/bin8/bin8_crypto.go index e9e76f9fa..341233001 100644 --- a/server/entranceserver/crypto.go +++ b/network/crypto/bin8/bin8_crypto.go @@ -1,4 +1,4 @@ -package entranceserver +package bin8 import ( "encoding/binary" diff --git a/server/entranceserver/crypto_test.go b/network/crypto/bin8/bin8_crypto_test.go similarity index 98% rename from server/entranceserver/crypto_test.go rename to network/crypto/bin8/bin8_crypto_test.go index c89baf231..679276cb7 100644 --- a/server/entranceserver/crypto_test.go +++ b/network/crypto/bin8/bin8_crypto_test.go @@ -1,4 +1,4 @@ -package entranceserver +package bin8 import ( "bytes" diff --git a/network/mhfpacket/mhfpacket.go b/network/mhfpacket/mhfpacket.go index 66d57d8e1..d2b3f371f 100644 --- a/network/mhfpacket/mhfpacket.go +++ b/network/mhfpacket/mhfpacket.go @@ -2,18 +2,17 @@ package mhfpacket import ( "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) // Parser is the interface that wraps the Parse method. type Parser interface { - Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error + Parse(bf *byteframe.ByteFrame) error } // Builder is the interface that wraps the Build method. type Builder interface { - Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error + Build(bf *byteframe.ByteFrame) error } // Opcoder is the interface that wraps the Opcode method. diff --git a/network/mhfpacket/msg_ca_exchange_item.go b/network/mhfpacket/msg_ca_exchange_item.go index e6460a17c..d06d67578 100644 --- a/network/mhfpacket/msg_ca_exchange_item.go +++ b/network/mhfpacket/msg_ca_exchange_item.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgCaExchangeItem) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgCaExchangeItem) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgCaExchangeItem) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgCaExchangeItem) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgCaExchangeItem) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_head.go b/network/mhfpacket/msg_head.go index 5df43ad94..c8c0f3ac6 100644 --- a/network/mhfpacket/msg_head.go +++ b/network/mhfpacket/msg_head.go @@ -3,8 +3,6 @@ package mhfpacket import ( "errors" - "erupe-ce/network/clientctx" - "erupe-ce/network" "erupe-ce/utils/byteframe" ) @@ -18,11 +16,11 @@ func (m *MsgHead) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgHead) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgHead) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgHead) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgHead) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_accept_read_reward.go b/network/mhfpacket/msg_mhf_accept_read_reward.go index f6eb99009..87e5e9f13 100644 --- a/network/mhfpacket/msg_mhf_accept_read_reward.go +++ b/network/mhfpacket/msg_mhf_accept_read_reward.go @@ -3,8 +3,6 @@ package mhfpacket import ( "errors" - "erupe-ce/network/clientctx" - "erupe-ce/network" "erupe-ce/utils/byteframe" ) @@ -18,11 +16,11 @@ func (m *MsgMhfAcceptReadReward) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfAcceptReadReward) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfAcceptReadReward) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgMhfAcceptReadReward) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfAcceptReadReward) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_acquire_cafe_item.go b/network/mhfpacket/msg_mhf_acquire_cafe_item.go index 149abd82e..c9b7e7bc4 100644 --- a/network/mhfpacket/msg_mhf_acquire_cafe_item.go +++ b/network/mhfpacket/msg_mhf_acquire_cafe_item.go @@ -5,7 +5,6 @@ import ( _config "erupe-ce/config" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -26,7 +25,7 @@ func (m *MsgMhfAcquireCafeItem) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfAcquireCafeItem) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfAcquireCafeItem) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.ItemType = bf.ReadUint16() m.ItemID = bf.ReadUint16() @@ -41,6 +40,6 @@ func (m *MsgMhfAcquireCafeItem) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Cl } // Build builds a binary packet from the current data. -func (m *MsgMhfAcquireCafeItem) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfAcquireCafeItem) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_acquire_dist_item.go b/network/mhfpacket/msg_mhf_acquire_dist_item.go index 2e4abb209..25961ba59 100644 --- a/network/mhfpacket/msg_mhf_acquire_dist_item.go +++ b/network/mhfpacket/msg_mhf_acquire_dist_item.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -21,7 +20,7 @@ func (m *MsgMhfAcquireDistItem) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfAcquireDistItem) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfAcquireDistItem) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.DistributionType = bf.ReadUint8() m.DistributionID = bf.ReadUint32() @@ -29,6 +28,6 @@ func (m *MsgMhfAcquireDistItem) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Cl } // Build builds a binary packet from the current data. -func (m *MsgMhfAcquireDistItem) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfAcquireDistItem) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_acquire_exchange_shop.go b/network/mhfpacket/msg_mhf_acquire_exchange_shop.go index a31411741..b86658856 100644 --- a/network/mhfpacket/msg_mhf_acquire_exchange_shop.go +++ b/network/mhfpacket/msg_mhf_acquire_exchange_shop.go @@ -2,7 +2,6 @@ package mhfpacket import ( "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -19,7 +18,7 @@ func (m *MsgMhfAcquireExchangeShop) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfAcquireExchangeShop) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfAcquireExchangeShop) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.DataSize = bf.ReadUint16() m.RawDataPayload = bf.ReadBytes(uint(m.DataSize)) @@ -27,7 +26,7 @@ func (m *MsgMhfAcquireExchangeShop) Parse(bf *byteframe.ByteFrame, ctx *clientct } // Build builds a binary packet from the current data. -func (m *MsgMhfAcquireExchangeShop) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfAcquireExchangeShop) Build(bf *byteframe.ByteFrame) error { bf.WriteUint32(m.AckHandle) bf.WriteUint16(m.DataSize) bf.WriteBytes(m.RawDataPayload) diff --git a/network/mhfpacket/msg_mhf_acquire_festa.go b/network/mhfpacket/msg_mhf_acquire_festa.go index 5280f2dcd..63d249fb1 100644 --- a/network/mhfpacket/msg_mhf_acquire_festa.go +++ b/network/mhfpacket/msg_mhf_acquire_festa.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -22,7 +21,7 @@ func (m *MsgMhfAcquireFesta) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfAcquireFesta) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfAcquireFesta) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.FestaID = bf.ReadUint32() m.GuildID = bf.ReadUint32() @@ -32,6 +31,6 @@ func (m *MsgMhfAcquireFesta) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Clien } // Build builds a binary packet from the current data. -func (m *MsgMhfAcquireFesta) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfAcquireFesta) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_acquire_festa_intermediate_prize.go b/network/mhfpacket/msg_mhf_acquire_festa_intermediate_prize.go index 60e5bc6ac..459da9a13 100644 --- a/network/mhfpacket/msg_mhf_acquire_festa_intermediate_prize.go +++ b/network/mhfpacket/msg_mhf_acquire_festa_intermediate_prize.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -20,13 +19,13 @@ func (m *MsgMhfAcquireFestaIntermediatePrize) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfAcquireFestaIntermediatePrize) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfAcquireFestaIntermediatePrize) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.PrizeID = bf.ReadUint32() return nil } // Build builds a binary packet from the current data. -func (m *MsgMhfAcquireFestaIntermediatePrize) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfAcquireFestaIntermediatePrize) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_acquire_festa_personal_prize.go b/network/mhfpacket/msg_mhf_acquire_festa_personal_prize.go index 4cfc83dd9..279eaec60 100644 --- a/network/mhfpacket/msg_mhf_acquire_festa_personal_prize.go +++ b/network/mhfpacket/msg_mhf_acquire_festa_personal_prize.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -20,13 +19,13 @@ func (m *MsgMhfAcquireFestaPersonalPrize) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfAcquireFestaPersonalPrize) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfAcquireFestaPersonalPrize) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.PrizeID = bf.ReadUint32() return nil } // Build builds a binary packet from the current data. -func (m *MsgMhfAcquireFestaPersonalPrize) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfAcquireFestaPersonalPrize) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_acquire_guild_adventure.go b/network/mhfpacket/msg_mhf_acquire_guild_adventure.go index 171ec6d6c..63703f02c 100644 --- a/network/mhfpacket/msg_mhf_acquire_guild_adventure.go +++ b/network/mhfpacket/msg_mhf_acquire_guild_adventure.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -20,13 +19,13 @@ func (m *MsgMhfAcquireGuildAdventure) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfAcquireGuildAdventure) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfAcquireGuildAdventure) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.ID = bf.ReadUint32() return nil } // Build builds a binary packet from the current data. -func (m *MsgMhfAcquireGuildAdventure) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfAcquireGuildAdventure) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_acquire_guild_tresure.go b/network/mhfpacket/msg_mhf_acquire_guild_tresure.go index 0260c2bd5..e2c143b05 100644 --- a/network/mhfpacket/msg_mhf_acquire_guild_tresure.go +++ b/network/mhfpacket/msg_mhf_acquire_guild_tresure.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -21,7 +20,7 @@ func (m *MsgMhfAcquireGuildTresure) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfAcquireGuildTresure) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfAcquireGuildTresure) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.HuntID = bf.ReadUint32() m.Unk = bf.ReadBool() @@ -29,6 +28,6 @@ func (m *MsgMhfAcquireGuildTresure) Parse(bf *byteframe.ByteFrame, ctx *clientct } // Build builds a binary packet from the current data. -func (m *MsgMhfAcquireGuildTresure) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfAcquireGuildTresure) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_acquire_guild_tresure_souvenir.go b/network/mhfpacket/msg_mhf_acquire_guild_tresure_souvenir.go index 09e162cf3..e1936e2cd 100644 --- a/network/mhfpacket/msg_mhf_acquire_guild_tresure_souvenir.go +++ b/network/mhfpacket/msg_mhf_acquire_guild_tresure_souvenir.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -19,12 +18,12 @@ func (m *MsgMhfAcquireGuildTresureSouvenir) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfAcquireGuildTresureSouvenir) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfAcquireGuildTresureSouvenir) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() return nil } // Build builds a binary packet from the current data. -func (m *MsgMhfAcquireGuildTresureSouvenir) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfAcquireGuildTresureSouvenir) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_acquire_item.go b/network/mhfpacket/msg_mhf_acquire_item.go index 1b3263447..cdbd24926 100644 --- a/network/mhfpacket/msg_mhf_acquire_item.go +++ b/network/mhfpacket/msg_mhf_acquire_item.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -22,7 +21,7 @@ func (m *MsgMhfAcquireItem) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfAcquireItem) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfAcquireItem) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.Unk0 = bf.ReadUint16() m.Length = bf.ReadUint16() @@ -33,6 +32,6 @@ func (m *MsgMhfAcquireItem) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Client } // Build builds a binary packet from the current data. -func (m *MsgMhfAcquireItem) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfAcquireItem) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_acquire_monthly_item.go b/network/mhfpacket/msg_mhf_acquire_monthly_item.go index e6847091c..3b2452ec0 100644 --- a/network/mhfpacket/msg_mhf_acquire_monthly_item.go +++ b/network/mhfpacket/msg_mhf_acquire_monthly_item.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -23,7 +22,7 @@ func (m *MsgMhfAcquireMonthlyItem) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfAcquireMonthlyItem) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfAcquireMonthlyItem) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.Unk0 = bf.ReadUint8() m.Unk1 = bf.ReadUint8() @@ -34,6 +33,6 @@ func (m *MsgMhfAcquireMonthlyItem) Parse(bf *byteframe.ByteFrame, ctx *clientctx } // Build builds a binary packet from the current data. -func (m *MsgMhfAcquireMonthlyItem) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfAcquireMonthlyItem) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_acquire_monthly_reward.go b/network/mhfpacket/msg_mhf_acquire_monthly_reward.go index 33ddc6349..f00e6061a 100644 --- a/network/mhfpacket/msg_mhf_acquire_monthly_reward.go +++ b/network/mhfpacket/msg_mhf_acquire_monthly_reward.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -19,12 +18,12 @@ func (m *MsgMhfAcquireMonthlyReward) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfAcquireMonthlyReward) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfAcquireMonthlyReward) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() return nil } // Build builds a binary packet from the current data. -func (m *MsgMhfAcquireMonthlyReward) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfAcquireMonthlyReward) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_acquire_title.go b/network/mhfpacket/msg_mhf_acquire_title.go index b724d5297..5da32ef47 100644 --- a/network/mhfpacket/msg_mhf_acquire_title.go +++ b/network/mhfpacket/msg_mhf_acquire_title.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -20,7 +19,7 @@ func (m *MsgMhfAcquireTitle) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfAcquireTitle) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfAcquireTitle) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() titles := int(bf.ReadUint16()) bf.ReadUint16() // Zeroed @@ -31,6 +30,6 @@ func (m *MsgMhfAcquireTitle) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Clien } // Build builds a binary packet from the current data. -func (m *MsgMhfAcquireTitle) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfAcquireTitle) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_acquire_tournament.go b/network/mhfpacket/msg_mhf_acquire_tournament.go index b2246807a..697505134 100644 --- a/network/mhfpacket/msg_mhf_acquire_tournament.go +++ b/network/mhfpacket/msg_mhf_acquire_tournament.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -20,13 +19,13 @@ func (m *MsgMhfAcquireTournament) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfAcquireTournament) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfAcquireTournament) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.TournamentID = bf.ReadUint32() return nil } // Build builds a binary packet from the current data. -func (m *MsgMhfAcquireTournament) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfAcquireTournament) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_acquire_ud_item.go b/network/mhfpacket/msg_mhf_acquire_ud_item.go index 245e4693b..8403db137 100644 --- a/network/mhfpacket/msg_mhf_acquire_ud_item.go +++ b/network/mhfpacket/msg_mhf_acquire_ud_item.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -33,7 +32,7 @@ func (m *MsgMhfAcquireUdItem) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfAcquireUdItem) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfAcquireUdItem) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.Unk0 = bf.ReadUint8() m.RewardType = bf.ReadUint8() @@ -45,6 +44,6 @@ func (m *MsgMhfAcquireUdItem) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Clie } // Build builds a binary packet from the current data. -func (m *MsgMhfAcquireUdItem) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfAcquireUdItem) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_add_achievement.go b/network/mhfpacket/msg_mhf_add_achievement.go index 3d4ffeb0c..a199ff8b7 100644 --- a/network/mhfpacket/msg_mhf_add_achievement.go +++ b/network/mhfpacket/msg_mhf_add_achievement.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -21,7 +20,7 @@ func (m *MsgMhfAddAchievement) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfAddAchievement) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfAddAchievement) Parse(bf *byteframe.ByteFrame) error { m.AchievementID = bf.ReadUint8() m.Unk1 = bf.ReadUint16() m.Unk2 = bf.ReadUint16() @@ -29,6 +28,6 @@ func (m *MsgMhfAddAchievement) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Cli } // Build builds a binary packet from the current data. -func (m *MsgMhfAddAchievement) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfAddAchievement) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_add_guild_mission_count.go b/network/mhfpacket/msg_mhf_add_guild_mission_count.go index eeb24778f..452655ce4 100644 --- a/network/mhfpacket/msg_mhf_add_guild_mission_count.go +++ b/network/mhfpacket/msg_mhf_add_guild_mission_count.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -21,7 +20,7 @@ func (m *MsgMhfAddGuildMissionCount) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfAddGuildMissionCount) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfAddGuildMissionCount) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.MissionID = bf.ReadUint32() m.Count = bf.ReadUint32() @@ -29,6 +28,6 @@ func (m *MsgMhfAddGuildMissionCount) Parse(bf *byteframe.ByteFrame, ctx *clientc } // Build builds a binary packet from the current data. -func (m *MsgMhfAddGuildMissionCount) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfAddGuildMissionCount) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_add_guild_weekly_bonus_exceptional_user.go b/network/mhfpacket/msg_mhf_add_guild_weekly_bonus_exceptional_user.go index 0bd4549b7..412073aae 100644 --- a/network/mhfpacket/msg_mhf_add_guild_weekly_bonus_exceptional_user.go +++ b/network/mhfpacket/msg_mhf_add_guild_weekly_bonus_exceptional_user.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -20,13 +19,13 @@ func (m *MsgMhfAddGuildWeeklyBonusExceptionalUser) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfAddGuildWeeklyBonusExceptionalUser) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfAddGuildWeeklyBonusExceptionalUser) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.NumUsers = bf.ReadUint8() return nil } // Build builds a binary packet from the current data. -func (m *MsgMhfAddGuildWeeklyBonusExceptionalUser) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfAddGuildWeeklyBonusExceptionalUser) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_add_kouryou_point.go b/network/mhfpacket/msg_mhf_add_kouryou_point.go index 57f0f2ef3..da792bf04 100644 --- a/network/mhfpacket/msg_mhf_add_kouryou_point.go +++ b/network/mhfpacket/msg_mhf_add_kouryou_point.go @@ -2,7 +2,6 @@ package mhfpacket import ( "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -18,14 +17,14 @@ func (m *MsgMhfAddKouryouPoint) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfAddKouryouPoint) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfAddKouryouPoint) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.KouryouPoints = bf.ReadUint32() return nil } // Build builds a binary packet from the current data. -func (m *MsgMhfAddKouryouPoint) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfAddKouryouPoint) Build(bf *byteframe.ByteFrame) error { bf.WriteUint32(m.AckHandle) bf.WriteUint32(m.KouryouPoints) return nil diff --git a/network/mhfpacket/msg_mhf_add_reward_song_count.go b/network/mhfpacket/msg_mhf_add_reward_song_count.go index 62bf80f7b..65fa3b443 100644 --- a/network/mhfpacket/msg_mhf_add_reward_song_count.go +++ b/network/mhfpacket/msg_mhf_add_reward_song_count.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgMhfAddRewardSongCount) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfAddRewardSongCount) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfAddRewardSongCount) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgMhfAddRewardSongCount) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfAddRewardSongCount) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_add_ud_point.go b/network/mhfpacket/msg_mhf_add_ud_point.go index 769e3b078..af1c7aea4 100644 --- a/network/mhfpacket/msg_mhf_add_ud_point.go +++ b/network/mhfpacket/msg_mhf_add_ud_point.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -21,7 +20,7 @@ func (m *MsgMhfAddUdPoint) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfAddUdPoint) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfAddUdPoint) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.Unk1 = bf.ReadUint32() m.Unk2 = bf.ReadUint32() @@ -31,6 +30,6 @@ func (m *MsgMhfAddUdPoint) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientC } // Build builds a binary packet from the current data. -func (m *MsgMhfAddUdPoint) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfAddUdPoint) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_add_ud_tactics_point.go b/network/mhfpacket/msg_mhf_add_ud_tactics_point.go index b6425cf51..1621ca62a 100644 --- a/network/mhfpacket/msg_mhf_add_ud_tactics_point.go +++ b/network/mhfpacket/msg_mhf_add_ud_tactics_point.go @@ -2,7 +2,6 @@ package mhfpacket import ( "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -19,7 +18,7 @@ func (m *MsgMhfAddUdTacticsPoint) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfAddUdTacticsPoint) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfAddUdTacticsPoint) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.Unk0 = bf.ReadUint16() m.Unk1 = bf.ReadUint32() @@ -27,7 +26,7 @@ func (m *MsgMhfAddUdTacticsPoint) Parse(bf *byteframe.ByteFrame, ctx *clientctx. } // Build builds a binary packet from the current data. -func (m *MsgMhfAddUdTacticsPoint) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfAddUdTacticsPoint) Build(bf *byteframe.ByteFrame) error { bf.WriteUint32(m.AckHandle) bf.WriteUint16(m.Unk0) bf.WriteUint32(m.Unk1) diff --git a/network/mhfpacket/msg_mhf_announce.go b/network/mhfpacket/msg_mhf_announce.go index e32580013..e673b47ef 100644 --- a/network/mhfpacket/msg_mhf_announce.go +++ b/network/mhfpacket/msg_mhf_announce.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -23,7 +22,7 @@ func (m *MsgMhfAnnounce) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfAnnounce) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfAnnounce) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.IPAddress = bf.ReadUint32() m.Port = bf.ReadUint16() @@ -36,6 +35,6 @@ func (m *MsgMhfAnnounce) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientCon } // Build builds a binary packet from the current data. -func (m *MsgMhfAnnounce) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfAnnounce) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_answer_guild_scout.go b/network/mhfpacket/msg_mhf_answer_guild_scout.go index 5edaad650..7da6fbfa0 100644 --- a/network/mhfpacket/msg_mhf_answer_guild_scout.go +++ b/network/mhfpacket/msg_mhf_answer_guild_scout.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -21,7 +20,7 @@ func (m *MsgMhfAnswerGuildScout) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfAnswerGuildScout) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfAnswerGuildScout) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.LeaderID = bf.ReadUint32() m.Answer = bf.ReadBool() @@ -29,6 +28,6 @@ func (m *MsgMhfAnswerGuildScout) Parse(bf *byteframe.ByteFrame, ctx *clientctx.C } // Build builds a binary packet from the current data. -func (m *MsgMhfAnswerGuildScout) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfAnswerGuildScout) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_apply_bbs_article.go b/network/mhfpacket/msg_mhf_apply_bbs_article.go index 378cc2926..b7ece1339 100644 --- a/network/mhfpacket/msg_mhf_apply_bbs_article.go +++ b/network/mhfpacket/msg_mhf_apply_bbs_article.go @@ -6,7 +6,6 @@ import ( "erupe-ce/utils/stringsupport" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -26,7 +25,7 @@ func (m *MsgMhfApplyBbsArticle) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfApplyBbsArticle) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfApplyBbsArticle) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.Unk0 = bf.ReadUint32() m.Unk1 = bf.ReadBytes(16) @@ -37,6 +36,6 @@ func (m *MsgMhfApplyBbsArticle) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Cl } // Build builds a binary packet from the current data. -func (m *MsgMhfApplyBbsArticle) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfApplyBbsArticle) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_apply_campaign.go b/network/mhfpacket/msg_mhf_apply_campaign.go index 2ab2639d3..62b4306c3 100644 --- a/network/mhfpacket/msg_mhf_apply_campaign.go +++ b/network/mhfpacket/msg_mhf_apply_campaign.go @@ -3,7 +3,6 @@ package mhfpacket import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -21,7 +20,7 @@ func (m *MsgMhfApplyCampaign) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfApplyCampaign) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfApplyCampaign) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.Unk0 = bf.ReadUint32() m.Unk1 = bf.ReadUint16() @@ -30,6 +29,6 @@ func (m *MsgMhfApplyCampaign) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Clie } // Build builds a binary packet from the current data. -func (m *MsgMhfApplyCampaign) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfApplyCampaign) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_apply_dist_item.go b/network/mhfpacket/msg_mhf_apply_dist_item.go index ed27bfef6..7ed1105db 100644 --- a/network/mhfpacket/msg_mhf_apply_dist_item.go +++ b/network/mhfpacket/msg_mhf_apply_dist_item.go @@ -4,7 +4,6 @@ import ( "errors" _config "erupe-ce/config" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -23,7 +22,7 @@ func (m *MsgMhfApplyDistItem) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfApplyDistItem) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfApplyDistItem) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.DistributionType = bf.ReadUint8() m.DistributionID = bf.ReadUint32() @@ -37,6 +36,6 @@ func (m *MsgMhfApplyDistItem) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Clie } // Build builds a binary packet from the current data. -func (m *MsgMhfApplyDistItem) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfApplyDistItem) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_arrange_guild_member.go b/network/mhfpacket/msg_mhf_arrange_guild_member.go index b565fe247..b9cffa147 100644 --- a/network/mhfpacket/msg_mhf_arrange_guild_member.go +++ b/network/mhfpacket/msg_mhf_arrange_guild_member.go @@ -3,7 +3,6 @@ package mhfpacket import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -20,7 +19,7 @@ func (m *MsgMhfArrangeGuildMember) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfArrangeGuildMember) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfArrangeGuildMember) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.GuildID = bf.ReadUint32() bf.ReadUint8() // Zeroed @@ -35,6 +34,6 @@ func (m *MsgMhfArrangeGuildMember) Parse(bf *byteframe.ByteFrame, ctx *clientctx } // Build builds a binary packet from the current data. -func (m *MsgMhfArrangeGuildMember) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfArrangeGuildMember) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_cancel_guild_mission_target.go b/network/mhfpacket/msg_mhf_cancel_guild_mission_target.go index 7b7f6c9d0..dc6a1bae0 100644 --- a/network/mhfpacket/msg_mhf_cancel_guild_mission_target.go +++ b/network/mhfpacket/msg_mhf_cancel_guild_mission_target.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -20,13 +19,13 @@ func (m *MsgMhfCancelGuildMissionTarget) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfCancelGuildMissionTarget) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfCancelGuildMissionTarget) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.MissionID = bf.ReadUint32() return nil } // Build builds a binary packet from the current data. -func (m *MsgMhfCancelGuildMissionTarget) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfCancelGuildMissionTarget) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_cancel_guild_scout.go b/network/mhfpacket/msg_mhf_cancel_guild_scout.go index 4c354601b..c45a7fcf9 100644 --- a/network/mhfpacket/msg_mhf_cancel_guild_scout.go +++ b/network/mhfpacket/msg_mhf_cancel_guild_scout.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -20,13 +19,13 @@ func (m *MsgMhfCancelGuildScout) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfCancelGuildScout) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfCancelGuildScout) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.InvitationID = bf.ReadUint32() return nil } // Build builds a binary packet from the current data. -func (m *MsgMhfCancelGuildScout) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfCancelGuildScout) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_caravan_my_rank.go b/network/mhfpacket/msg_mhf_caravan_my_rank.go index 2f4b0dec0..47d2403c2 100644 --- a/network/mhfpacket/msg_mhf_caravan_my_rank.go +++ b/network/mhfpacket/msg_mhf_caravan_my_rank.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -22,7 +21,7 @@ func (m *MsgMhfCaravanMyRank) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfCaravanMyRank) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfCaravanMyRank) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.Unk0 = bf.ReadUint32() m.Unk1 = bf.ReadUint32() @@ -31,6 +30,6 @@ func (m *MsgMhfCaravanMyRank) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Clie } // Build builds a binary packet from the current data. -func (m *MsgMhfCaravanMyRank) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfCaravanMyRank) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_caravan_my_score.go b/network/mhfpacket/msg_mhf_caravan_my_score.go index 34e089d24..3679a4f53 100644 --- a/network/mhfpacket/msg_mhf_caravan_my_score.go +++ b/network/mhfpacket/msg_mhf_caravan_my_score.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -26,7 +25,7 @@ func (m *MsgMhfCaravanMyScore) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfCaravanMyScore) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfCaravanMyScore) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.Unk0 = bf.ReadUint32() m.Unk1 = bf.ReadUint32() @@ -39,6 +38,6 @@ func (m *MsgMhfCaravanMyScore) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Cli } // Build builds a binary packet from the current data. -func (m *MsgMhfCaravanMyScore) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfCaravanMyScore) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_caravan_ranking.go b/network/mhfpacket/msg_mhf_caravan_ranking.go index 5465e1627..fbdd5123d 100644 --- a/network/mhfpacket/msg_mhf_caravan_ranking.go +++ b/network/mhfpacket/msg_mhf_caravan_ranking.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -22,7 +21,7 @@ func (m *MsgMhfCaravanRanking) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfCaravanRanking) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfCaravanRanking) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.Unk0 = bf.ReadUint32() m.Unk1 = bf.ReadUint32() @@ -31,6 +30,6 @@ func (m *MsgMhfCaravanRanking) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Cli } // Build builds a binary packet from the current data. -func (m *MsgMhfCaravanRanking) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfCaravanRanking) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_charge_festa.go b/network/mhfpacket/msg_mhf_charge_festa.go index 926c9866d..7137d863a 100644 --- a/network/mhfpacket/msg_mhf_charge_festa.go +++ b/network/mhfpacket/msg_mhf_charge_festa.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -23,7 +22,7 @@ func (m *MsgMhfChargeFesta) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfChargeFesta) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfChargeFesta) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.FestaID = bf.ReadUint32() m.GuildID = bf.ReadUint32() @@ -35,6 +34,6 @@ func (m *MsgMhfChargeFesta) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Client } // Build builds a binary packet from the current data. -func (m *MsgMhfChargeFesta) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfChargeFesta) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_charge_guild_adventure.go b/network/mhfpacket/msg_mhf_charge_guild_adventure.go index 2f13909c8..78ca18529 100644 --- a/network/mhfpacket/msg_mhf_charge_guild_adventure.go +++ b/network/mhfpacket/msg_mhf_charge_guild_adventure.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -21,7 +20,7 @@ func (m *MsgMhfChargeGuildAdventure) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfChargeGuildAdventure) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfChargeGuildAdventure) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.ID = bf.ReadUint32() m.Amount = bf.ReadUint32() @@ -29,6 +28,6 @@ func (m *MsgMhfChargeGuildAdventure) Parse(bf *byteframe.ByteFrame, ctx *clientc } // Build builds a binary packet from the current data. -func (m *MsgMhfChargeGuildAdventure) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfChargeGuildAdventure) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_check_daily_cafepoint.go b/network/mhfpacket/msg_mhf_check_daily_cafepoint.go index 9cd66c905..70dbb1886 100644 --- a/network/mhfpacket/msg_mhf_check_daily_cafepoint.go +++ b/network/mhfpacket/msg_mhf_check_daily_cafepoint.go @@ -3,7 +3,6 @@ package mhfpacket import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -19,12 +18,12 @@ func (m *MsgMhfCheckDailyCafepoint) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfCheckDailyCafepoint) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfCheckDailyCafepoint) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.Unk = bf.ReadUint32() return nil } -func (m *MsgMhfCheckDailyCafepoint) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfCheckDailyCafepoint) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_check_monthly_item.go b/network/mhfpacket/msg_mhf_check_monthly_item.go index 29916bbf8..70f44dc13 100644 --- a/network/mhfpacket/msg_mhf_check_monthly_item.go +++ b/network/mhfpacket/msg_mhf_check_monthly_item.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -20,7 +19,7 @@ func (m *MsgMhfCheckMonthlyItem) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfCheckMonthlyItem) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfCheckMonthlyItem) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.Type = bf.ReadUint8() bf.ReadUint8() // Zeroed @@ -30,6 +29,6 @@ func (m *MsgMhfCheckMonthlyItem) Parse(bf *byteframe.ByteFrame, ctx *clientctx.C } // Build builds a binary packet from the current data. -func (m *MsgMhfCheckMonthlyItem) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfCheckMonthlyItem) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_check_weekly_stamp.go b/network/mhfpacket/msg_mhf_check_weekly_stamp.go index 5afab1e3e..c244fa7aa 100644 --- a/network/mhfpacket/msg_mhf_check_weekly_stamp.go +++ b/network/mhfpacket/msg_mhf_check_weekly_stamp.go @@ -3,7 +3,6 @@ package mhfpacket import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -20,7 +19,7 @@ func (m *MsgMhfCheckWeeklyStamp) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfCheckWeeklyStamp) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfCheckWeeklyStamp) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() stampType := bf.ReadUint8() switch stampType { @@ -35,6 +34,6 @@ func (m *MsgMhfCheckWeeklyStamp) Parse(bf *byteframe.ByteFrame, ctx *clientctx.C } // Build builds a binary packet from the current data. -func (m *MsgMhfCheckWeeklyStamp) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfCheckWeeklyStamp) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_contract_mercenary.go b/network/mhfpacket/msg_mhf_contract_mercenary.go index 9a2e52daf..4abd4f2ce 100644 --- a/network/mhfpacket/msg_mhf_contract_mercenary.go +++ b/network/mhfpacket/msg_mhf_contract_mercenary.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -22,7 +21,7 @@ func (m *MsgMhfContractMercenary) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfContractMercenary) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfContractMercenary) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.PactMercID = bf.ReadUint32() m.CID = bf.ReadUint32() @@ -31,6 +30,6 @@ func (m *MsgMhfContractMercenary) Parse(bf *byteframe.ByteFrame, ctx *clientctx. } // Build builds a binary packet from the current data. -func (m *MsgMhfContractMercenary) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfContractMercenary) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_create_guild.go b/network/mhfpacket/msg_mhf_create_guild.go index 15d5d166c..00765a67b 100644 --- a/network/mhfpacket/msg_mhf_create_guild.go +++ b/network/mhfpacket/msg_mhf_create_guild.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" "erupe-ce/utils/stringsupport" ) @@ -21,7 +20,7 @@ func (m *MsgMhfCreateGuild) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfCreateGuild) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfCreateGuild) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() bf.ReadUint16() // Zeroed bf.ReadUint16() // Name length @@ -30,6 +29,6 @@ func (m *MsgMhfCreateGuild) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Client } // Build builds a binary packet from the current data. -func (m *MsgMhfCreateGuild) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfCreateGuild) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_create_joint.go b/network/mhfpacket/msg_mhf_create_joint.go index bfad13e92..ea2611597 100644 --- a/network/mhfpacket/msg_mhf_create_joint.go +++ b/network/mhfpacket/msg_mhf_create_joint.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" "erupe-ce/utils/stringsupport" ) @@ -22,7 +21,7 @@ func (m *MsgMhfCreateJoint) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfCreateJoint) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfCreateJoint) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.GuildID = bf.ReadUint32() bf.ReadUint16() // Zeroed @@ -32,6 +31,6 @@ func (m *MsgMhfCreateJoint) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Client } // Build builds a binary packet from the current data. -func (m *MsgMhfCreateJoint) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfCreateJoint) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_create_mercenary.go b/network/mhfpacket/msg_mhf_create_mercenary.go index d9312e6fd..115e94d43 100644 --- a/network/mhfpacket/msg_mhf_create_mercenary.go +++ b/network/mhfpacket/msg_mhf_create_mercenary.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -19,12 +18,12 @@ func (m *MsgMhfCreateMercenary) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfCreateMercenary) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfCreateMercenary) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() return nil } // Build builds a binary packet from the current data. -func (m *MsgMhfCreateMercenary) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfCreateMercenary) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_debug_post_value.go b/network/mhfpacket/msg_mhf_debug_post_value.go index b6823177b..682cd3540 100644 --- a/network/mhfpacket/msg_mhf_debug_post_value.go +++ b/network/mhfpacket/msg_mhf_debug_post_value.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgMhfDebugPostValue) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfDebugPostValue) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfDebugPostValue) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgMhfDebugPostValue) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfDebugPostValue) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_displayed_achievement.go b/network/mhfpacket/msg_mhf_displayed_achievement.go index 5133689d8..88f6a54e9 100644 --- a/network/mhfpacket/msg_mhf_displayed_achievement.go +++ b/network/mhfpacket/msg_mhf_displayed_achievement.go @@ -3,7 +3,6 @@ package mhfpacket import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -16,12 +15,12 @@ func (m *MsgMhfDisplayedAchievement) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfDisplayedAchievement) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfDisplayedAchievement) Parse(bf *byteframe.ByteFrame) error { bf.ReadUint8() // Zeroed return nil } // Build builds a binary packet from the current data. -func (m *MsgMhfDisplayedAchievement) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfDisplayedAchievement) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_enter_tournament_quest.go b/network/mhfpacket/msg_mhf_enter_tournament_quest.go index 117032e0e..f9393ad63 100644 --- a/network/mhfpacket/msg_mhf_enter_tournament_quest.go +++ b/network/mhfpacket/msg_mhf_enter_tournament_quest.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgMhfEnterTournamentQuest) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfEnterTournamentQuest) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfEnterTournamentQuest) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgMhfEnterTournamentQuest) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfEnterTournamentQuest) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_entry_festa.go b/network/mhfpacket/msg_mhf_entry_festa.go index 0891693a2..f20257b4a 100644 --- a/network/mhfpacket/msg_mhf_entry_festa.go +++ b/network/mhfpacket/msg_mhf_entry_festa.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -21,7 +20,7 @@ func (m *MsgMhfEntryFesta) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfEntryFesta) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfEntryFesta) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.FestaID = bf.ReadUint32() m.GuildID = bf.ReadUint32() @@ -30,6 +29,6 @@ func (m *MsgMhfEntryFesta) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientC } // Build builds a binary packet from the current data. -func (m *MsgMhfEntryFesta) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfEntryFesta) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_entry_rookie_guild.go b/network/mhfpacket/msg_mhf_entry_rookie_guild.go index 3da316339..7ea820736 100644 --- a/network/mhfpacket/msg_mhf_entry_rookie_guild.go +++ b/network/mhfpacket/msg_mhf_entry_rookie_guild.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -20,13 +19,13 @@ func (m *MsgMhfEntryRookieGuild) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfEntryRookieGuild) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfEntryRookieGuild) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.Unk = bf.ReadUint32() return nil } // Build builds a binary packet from the current data. -func (m *MsgMhfEntryRookieGuild) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfEntryRookieGuild) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_entry_tournament.go b/network/mhfpacket/msg_mhf_entry_tournament.go index 43a03ef3c..137cf821a 100644 --- a/network/mhfpacket/msg_mhf_entry_tournament.go +++ b/network/mhfpacket/msg_mhf_entry_tournament.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -21,7 +20,7 @@ func (m *MsgMhfEntryTournament) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfEntryTournament) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfEntryTournament) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.TournamentID = bf.ReadUint32() m.Unk0 = bf.ReadUint8() @@ -29,6 +28,6 @@ func (m *MsgMhfEntryTournament) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Cl } // Build builds a binary packet from the current data. -func (m *MsgMhfEntryTournament) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfEntryTournament) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_enumerate_airoulist.go b/network/mhfpacket/msg_mhf_enumerate_airoulist.go index 3a2590b8f..e2bf0e4f6 100644 --- a/network/mhfpacket/msg_mhf_enumerate_airoulist.go +++ b/network/mhfpacket/msg_mhf_enumerate_airoulist.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -21,7 +20,7 @@ func (m *MsgMhfEnumerateAiroulist) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfEnumerateAiroulist) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfEnumerateAiroulist) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.Unk0 = bf.ReadUint16() m.Unk1 = bf.ReadUint16() @@ -29,6 +28,6 @@ func (m *MsgMhfEnumerateAiroulist) Parse(bf *byteframe.ByteFrame, ctx *clientctx } // Build builds a binary packet from the current data. -func (m *MsgMhfEnumerateAiroulist) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfEnumerateAiroulist) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_enumerate_campaign.go b/network/mhfpacket/msg_mhf_enumerate_campaign.go index dd932bcc9..1cb30da43 100644 --- a/network/mhfpacket/msg_mhf_enumerate_campaign.go +++ b/network/mhfpacket/msg_mhf_enumerate_campaign.go @@ -2,7 +2,6 @@ package mhfpacket import ( "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -19,7 +18,7 @@ func (m *MsgMhfEnumerateCampaign) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfEnumerateCampaign) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfEnumerateCampaign) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.Unk0 = bf.ReadUint16() m.Unk1 = bf.ReadUint16() @@ -27,7 +26,7 @@ func (m *MsgMhfEnumerateCampaign) Parse(bf *byteframe.ByteFrame, ctx *clientctx. } // Build builds a binary packet from the current data. -func (m *MsgMhfEnumerateCampaign) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfEnumerateCampaign) Build(bf *byteframe.ByteFrame) error { bf.WriteUint32(m.AckHandle) bf.WriteUint16(m.Unk0) bf.WriteUint16(m.Unk1) diff --git a/network/mhfpacket/msg_mhf_enumerate_dist_item.go b/network/mhfpacket/msg_mhf_enumerate_dist_item.go index 2a0f62604..72038d707 100644 --- a/network/mhfpacket/msg_mhf_enumerate_dist_item.go +++ b/network/mhfpacket/msg_mhf_enumerate_dist_item.go @@ -4,7 +4,6 @@ import ( "errors" _config "erupe-ce/config" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -23,7 +22,7 @@ func (m *MsgMhfEnumerateDistItem) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfEnumerateDistItem) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfEnumerateDistItem) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.DistType = bf.ReadUint8() m.Unk1 = bf.ReadUint8() @@ -35,6 +34,6 @@ func (m *MsgMhfEnumerateDistItem) Parse(bf *byteframe.ByteFrame, ctx *clientctx. } // Build builds a binary packet from the current data. -func (m *MsgMhfEnumerateDistItem) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfEnumerateDistItem) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_enumerate_event.go b/network/mhfpacket/msg_mhf_enumerate_event.go index ff011a760..946f531f8 100644 --- a/network/mhfpacket/msg_mhf_enumerate_event.go +++ b/network/mhfpacket/msg_mhf_enumerate_event.go @@ -3,7 +3,6 @@ package mhfpacket import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -18,7 +17,7 @@ func (m *MsgMhfEnumerateEvent) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfEnumerateEvent) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfEnumerateEvent) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() bf.ReadUint16() // Zeroed bf.ReadUint16() // Zeroed @@ -26,6 +25,6 @@ func (m *MsgMhfEnumerateEvent) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Cli } // Build builds a binary packet from the current data. -func (m *MsgMhfEnumerateEvent) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfEnumerateEvent) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_enumerate_festa_intermediate_prize.go b/network/mhfpacket/msg_mhf_enumerate_festa_intermediate_prize.go index b18144cf8..8f880cf7b 100644 --- a/network/mhfpacket/msg_mhf_enumerate_festa_intermediate_prize.go +++ b/network/mhfpacket/msg_mhf_enumerate_festa_intermediate_prize.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -19,12 +18,12 @@ func (m *MsgMhfEnumerateFestaIntermediatePrize) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfEnumerateFestaIntermediatePrize) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfEnumerateFestaIntermediatePrize) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() return nil } // Build builds a binary packet from the current data. -func (m *MsgMhfEnumerateFestaIntermediatePrize) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfEnumerateFestaIntermediatePrize) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_enumerate_festa_member.go b/network/mhfpacket/msg_mhf_enumerate_festa_member.go index ef069583b..bad8866f9 100644 --- a/network/mhfpacket/msg_mhf_enumerate_festa_member.go +++ b/network/mhfpacket/msg_mhf_enumerate_festa_member.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -21,7 +20,7 @@ func (m *MsgMhfEnumerateFestaMember) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfEnumerateFestaMember) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfEnumerateFestaMember) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.FestaID = bf.ReadUint32() m.GuildID = bf.ReadUint32() @@ -30,6 +29,6 @@ func (m *MsgMhfEnumerateFestaMember) Parse(bf *byteframe.ByteFrame, ctx *clientc } // Build builds a binary packet from the current data. -func (m *MsgMhfEnumerateFestaMember) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfEnumerateFestaMember) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_enumerate_festa_personal_prize.go b/network/mhfpacket/msg_mhf_enumerate_festa_personal_prize.go index 45bd46e63..520146547 100644 --- a/network/mhfpacket/msg_mhf_enumerate_festa_personal_prize.go +++ b/network/mhfpacket/msg_mhf_enumerate_festa_personal_prize.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -19,12 +18,12 @@ func (m *MsgMhfEnumerateFestaPersonalPrize) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfEnumerateFestaPersonalPrize) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfEnumerateFestaPersonalPrize) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() return nil } // Build builds a binary packet from the current data. -func (m *MsgMhfEnumerateFestaPersonalPrize) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfEnumerateFestaPersonalPrize) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_enumerate_guacot.go b/network/mhfpacket/msg_mhf_enumerate_guacot.go index 805f9694d..89e3ad428 100644 --- a/network/mhfpacket/msg_mhf_enumerate_guacot.go +++ b/network/mhfpacket/msg_mhf_enumerate_guacot.go @@ -3,7 +3,6 @@ package mhfpacket import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -19,7 +18,7 @@ func (m *MsgMhfEnumerateGuacot) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfEnumerateGuacot) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfEnumerateGuacot) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.Unk0 = bf.ReadUint32() bf.ReadUint16() // Zeroed @@ -27,6 +26,6 @@ func (m *MsgMhfEnumerateGuacot) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Cl } // Build builds a binary packet from the current data. -func (m *MsgMhfEnumerateGuacot) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfEnumerateGuacot) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_enumerate_guild.go b/network/mhfpacket/msg_mhf_enumerate_guild.go index 684e8625f..00fd4523f 100644 --- a/network/mhfpacket/msg_mhf_enumerate_guild.go +++ b/network/mhfpacket/msg_mhf_enumerate_guild.go @@ -3,7 +3,6 @@ package mhfpacket import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -42,7 +41,7 @@ func (m *MsgMhfEnumerateGuild) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfEnumerateGuild) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfEnumerateGuild) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.Type = EnumerateGuildType(bf.ReadUint8()) m.Page = bf.ReadUint8() @@ -57,6 +56,6 @@ func (m *MsgMhfEnumerateGuild) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Cli } // Build builds a binary packet from the current data. -func (m *MsgMhfEnumerateGuild) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfEnumerateGuild) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_enumerate_guild_item.go b/network/mhfpacket/msg_mhf_enumerate_guild_item.go index a868e8920..cc134377c 100644 --- a/network/mhfpacket/msg_mhf_enumerate_guild_item.go +++ b/network/mhfpacket/msg_mhf_enumerate_guild_item.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -20,7 +19,7 @@ func (m *MsgMhfEnumerateGuildItem) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfEnumerateGuildItem) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfEnumerateGuildItem) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.GuildID = bf.ReadUint32() bf.ReadUint8() // Zeroed @@ -29,6 +28,6 @@ func (m *MsgMhfEnumerateGuildItem) Parse(bf *byteframe.ByteFrame, ctx *clientctx } // Build builds a binary packet from the current data. -func (m *MsgMhfEnumerateGuildItem) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfEnumerateGuildItem) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_enumerate_guild_member.go b/network/mhfpacket/msg_mhf_enumerate_guild_member.go index 1d433ec96..e55f9c51b 100644 --- a/network/mhfpacket/msg_mhf_enumerate_guild_member.go +++ b/network/mhfpacket/msg_mhf_enumerate_guild_member.go @@ -3,7 +3,6 @@ package mhfpacket import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -20,7 +19,7 @@ func (m *MsgMhfEnumerateGuildMember) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfEnumerateGuildMember) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfEnumerateGuildMember) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() bf.ReadUint8() // Zeroed bf.ReadUint8() // Always 1 @@ -30,6 +29,6 @@ func (m *MsgMhfEnumerateGuildMember) Parse(bf *byteframe.ByteFrame, ctx *clientc } // Build builds a binary packet from the current data. -func (m *MsgMhfEnumerateGuildMember) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfEnumerateGuildMember) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_enumerate_guild_message_board.go b/network/mhfpacket/msg_mhf_enumerate_guild_message_board.go index eb49fc553..50c73c776 100644 --- a/network/mhfpacket/msg_mhf_enumerate_guild_message_board.go +++ b/network/mhfpacket/msg_mhf_enumerate_guild_message_board.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -23,7 +22,7 @@ func (m *MsgMhfEnumerateGuildMessageBoard) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfEnumerateGuildMessageBoard) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfEnumerateGuildMessageBoard) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.Unk0 = bf.ReadUint32() m.MaxPosts = bf.ReadUint32() @@ -32,6 +31,6 @@ func (m *MsgMhfEnumerateGuildMessageBoard) Parse(bf *byteframe.ByteFrame, ctx *c } // Build builds a binary packet from the current data. -func (m *MsgMhfEnumerateGuildMessageBoard) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfEnumerateGuildMessageBoard) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_enumerate_guild_tresure.go b/network/mhfpacket/msg_mhf_enumerate_guild_tresure.go index 5423138fe..f95729330 100644 --- a/network/mhfpacket/msg_mhf_enumerate_guild_tresure.go +++ b/network/mhfpacket/msg_mhf_enumerate_guild_tresure.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -22,7 +21,7 @@ func (m *MsgMhfEnumerateGuildTresure) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfEnumerateGuildTresure) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfEnumerateGuildTresure) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.MaxHunts = bf.ReadUint16() m.Unk0 = bf.ReadUint16() @@ -31,6 +30,6 @@ func (m *MsgMhfEnumerateGuildTresure) Parse(bf *byteframe.ByteFrame, ctx *client } // Build builds a binary packet from the current data. -func (m *MsgMhfEnumerateGuildTresure) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfEnumerateGuildTresure) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_enumerate_house.go b/network/mhfpacket/msg_mhf_enumerate_house.go index fc217b4ec..366729bed 100644 --- a/network/mhfpacket/msg_mhf_enumerate_house.go +++ b/network/mhfpacket/msg_mhf_enumerate_house.go @@ -5,7 +5,6 @@ import ( "erupe-ce/utils/stringsupport" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -23,7 +22,7 @@ func (m *MsgMhfEnumerateHouse) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfEnumerateHouse) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfEnumerateHouse) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.CharID = bf.ReadUint32() m.Method = bf.ReadUint8() @@ -36,6 +35,6 @@ func (m *MsgMhfEnumerateHouse) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Cli } // Build builds a binary packet from the current data. -func (m *MsgMhfEnumerateHouse) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfEnumerateHouse) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_enumerate_inv_guild.go b/network/mhfpacket/msg_mhf_enumerate_inv_guild.go index df13b9b1b..31ca4d6c1 100644 --- a/network/mhfpacket/msg_mhf_enumerate_inv_guild.go +++ b/network/mhfpacket/msg_mhf_enumerate_inv_guild.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -25,7 +24,7 @@ func (m *MsgMhfEnumerateInvGuild) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfEnumerateInvGuild) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfEnumerateInvGuild) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.Unk = bf.ReadUint32() m.Operation = bf.ReadUint8() @@ -37,6 +36,6 @@ func (m *MsgMhfEnumerateInvGuild) Parse(bf *byteframe.ByteFrame, ctx *clientctx. } // Build builds a binary packet from the current data. -func (m *MsgMhfEnumerateInvGuild) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfEnumerateInvGuild) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_enumerate_item.go b/network/mhfpacket/msg_mhf_enumerate_item.go index 022a0709a..336e140bd 100644 --- a/network/mhfpacket/msg_mhf_enumerate_item.go +++ b/network/mhfpacket/msg_mhf_enumerate_item.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -22,7 +21,7 @@ func (m *MsgMhfEnumerateItem) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfEnumerateItem) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfEnumerateItem) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.Unk0 = bf.ReadUint16() m.Unk1 = bf.ReadUint16() @@ -31,6 +30,6 @@ func (m *MsgMhfEnumerateItem) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Clie } // Build builds a binary packet from the current data. -func (m *MsgMhfEnumerateItem) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfEnumerateItem) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_enumerate_mercenary_log.go b/network/mhfpacket/msg_mhf_enumerate_mercenary_log.go index e4405ce8c..7a9e1c3e4 100644 --- a/network/mhfpacket/msg_mhf_enumerate_mercenary_log.go +++ b/network/mhfpacket/msg_mhf_enumerate_mercenary_log.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -19,12 +18,12 @@ func (m *MsgMhfEnumerateMercenaryLog) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfEnumerateMercenaryLog) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfEnumerateMercenaryLog) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() return nil } // Build builds a binary packet from the current data. -func (m *MsgMhfEnumerateMercenaryLog) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfEnumerateMercenaryLog) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_enumerate_order.go b/network/mhfpacket/msg_mhf_enumerate_order.go index a7c6a8995..94af0d51b 100644 --- a/network/mhfpacket/msg_mhf_enumerate_order.go +++ b/network/mhfpacket/msg_mhf_enumerate_order.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -21,7 +20,7 @@ func (m *MsgMhfEnumerateOrder) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfEnumerateOrder) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfEnumerateOrder) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.Unk0 = bf.ReadUint32() m.Unk1 = bf.ReadUint32() @@ -29,6 +28,6 @@ func (m *MsgMhfEnumerateOrder) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Cli } // Build builds a binary packet from the current data. -func (m *MsgMhfEnumerateOrder) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfEnumerateOrder) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_enumerate_price.go b/network/mhfpacket/msg_mhf_enumerate_price.go index 256fde2ff..b44814b9d 100644 --- a/network/mhfpacket/msg_mhf_enumerate_price.go +++ b/network/mhfpacket/msg_mhf_enumerate_price.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -19,7 +18,7 @@ func (m *MsgMhfEnumeratePrice) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfEnumeratePrice) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfEnumeratePrice) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() bf.ReadUint16() // Zeroed bf.ReadUint16() // Zeroed @@ -27,6 +26,6 @@ func (m *MsgMhfEnumeratePrice) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Cli } // Build builds a binary packet from the current data. -func (m *MsgMhfEnumeratePrice) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfEnumeratePrice) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_enumerate_quest.go b/network/mhfpacket/msg_mhf_enumerate_quest.go index 9c5a354bf..d946cd301 100644 --- a/network/mhfpacket/msg_mhf_enumerate_quest.go +++ b/network/mhfpacket/msg_mhf_enumerate_quest.go @@ -5,7 +5,6 @@ import ( _config "erupe-ce/config" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -25,7 +24,7 @@ func (m *MsgMhfEnumerateQuest) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfEnumerateQuest) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfEnumerateQuest) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.Unk0 = bf.ReadUint8() m.World = bf.ReadUint8() @@ -40,6 +39,6 @@ func (m *MsgMhfEnumerateQuest) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Cli } // Build builds a binary packet from the current data. -func (m *MsgMhfEnumerateQuest) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfEnumerateQuest) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_enumerate_ranking.go b/network/mhfpacket/msg_mhf_enumerate_ranking.go index 07f93851a..cfbb82ba7 100644 --- a/network/mhfpacket/msg_mhf_enumerate_ranking.go +++ b/network/mhfpacket/msg_mhf_enumerate_ranking.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -19,7 +18,7 @@ func (m *MsgMhfEnumerateRanking) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfEnumerateRanking) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfEnumerateRanking) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() bf.ReadUint16() // Zeroed bf.ReadUint8() // Zeroed @@ -28,6 +27,6 @@ func (m *MsgMhfEnumerateRanking) Parse(bf *byteframe.ByteFrame, ctx *clientctx.C } // Build builds a binary packet from the current data. -func (m *MsgMhfEnumerateRanking) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfEnumerateRanking) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_enumerate_rengoku_ranking.go b/network/mhfpacket/msg_mhf_enumerate_rengoku_ranking.go index 94dd1f775..ad370fe5f 100644 --- a/network/mhfpacket/msg_mhf_enumerate_rengoku_ranking.go +++ b/network/mhfpacket/msg_mhf_enumerate_rengoku_ranking.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -22,7 +21,7 @@ func (m *MsgMhfEnumerateRengokuRanking) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfEnumerateRengokuRanking) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfEnumerateRengokuRanking) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.Leaderboard = bf.ReadUint32() m.Unk1 = bf.ReadUint16() @@ -31,6 +30,6 @@ func (m *MsgMhfEnumerateRengokuRanking) Parse(bf *byteframe.ByteFrame, ctx *clie } // Build builds a binary packet from the current data. -func (m *MsgMhfEnumerateRengokuRanking) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfEnumerateRengokuRanking) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_enumerate_shop.go b/network/mhfpacket/msg_mhf_enumerate_shop.go index d64e5b871..6994c91f0 100644 --- a/network/mhfpacket/msg_mhf_enumerate_shop.go +++ b/network/mhfpacket/msg_mhf_enumerate_shop.go @@ -5,7 +5,6 @@ import ( _config "erupe-ce/config" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -26,7 +25,7 @@ func (m *MsgMhfEnumerateShop) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfEnumerateShop) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfEnumerateShop) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.ShopType = bf.ReadUint8() m.ShopID = bf.ReadUint32() @@ -40,6 +39,6 @@ func (m *MsgMhfEnumerateShop) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Clie } // Build builds a binary packet from the current data. -func (m *MsgMhfEnumerateShop) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfEnumerateShop) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_enumerate_title.go b/network/mhfpacket/msg_mhf_enumerate_title.go index dc1a52a65..5fb069fb5 100644 --- a/network/mhfpacket/msg_mhf_enumerate_title.go +++ b/network/mhfpacket/msg_mhf_enumerate_title.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -20,13 +19,13 @@ func (m *MsgMhfEnumerateTitle) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfEnumerateTitle) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfEnumerateTitle) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.CharID = bf.ReadUint32() return nil } // Build builds a binary packet from the current data. -func (m *MsgMhfEnumerateTitle) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfEnumerateTitle) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_enumerate_union_item.go b/network/mhfpacket/msg_mhf_enumerate_union_item.go index 29bc797ae..860062d54 100644 --- a/network/mhfpacket/msg_mhf_enumerate_union_item.go +++ b/network/mhfpacket/msg_mhf_enumerate_union_item.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -19,7 +18,7 @@ func (m *MsgMhfEnumerateUnionItem) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfEnumerateUnionItem) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfEnumerateUnionItem) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() bf.ReadUint8() // Zeroed bf.ReadUint8() // Zeroed @@ -27,6 +26,6 @@ func (m *MsgMhfEnumerateUnionItem) Parse(bf *byteframe.ByteFrame, ctx *clientctx } // Build builds a binary packet from the current data. -func (m *MsgMhfEnumerateUnionItem) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfEnumerateUnionItem) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_enumerate_warehouse.go b/network/mhfpacket/msg_mhf_enumerate_warehouse.go index d8d1d60d9..4f3c7304d 100644 --- a/network/mhfpacket/msg_mhf_enumerate_warehouse.go +++ b/network/mhfpacket/msg_mhf_enumerate_warehouse.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -21,7 +20,7 @@ func (m *MsgMhfEnumerateWarehouse) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfEnumerateWarehouse) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfEnumerateWarehouse) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.BoxType = bf.ReadUint8() m.BoxIndex = bf.ReadUint8() @@ -31,6 +30,6 @@ func (m *MsgMhfEnumerateWarehouse) Parse(bf *byteframe.ByteFrame, ctx *clientctx } // Build builds a binary packet from the current data. -func (m *MsgMhfEnumerateWarehouse) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfEnumerateWarehouse) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_exchange_fpoint_2_item.go b/network/mhfpacket/msg_mhf_exchange_fpoint_2_item.go index 095326c2e..1a7900084 100644 --- a/network/mhfpacket/msg_mhf_exchange_fpoint_2_item.go +++ b/network/mhfpacket/msg_mhf_exchange_fpoint_2_item.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -23,7 +22,7 @@ func (m *MsgMhfExchangeFpoint2Item) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfExchangeFpoint2Item) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfExchangeFpoint2Item) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.TradeID = bf.ReadUint32() m.ItemType = bf.ReadUint16() @@ -33,6 +32,6 @@ func (m *MsgMhfExchangeFpoint2Item) Parse(bf *byteframe.ByteFrame, ctx *clientct } // Build builds a binary packet from the current data. -func (m *MsgMhfExchangeFpoint2Item) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfExchangeFpoint2Item) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_exchange_item_2_fpoint.go b/network/mhfpacket/msg_mhf_exchange_item_2_fpoint.go index dd3afc539..e6e12fb4d 100644 --- a/network/mhfpacket/msg_mhf_exchange_item_2_fpoint.go +++ b/network/mhfpacket/msg_mhf_exchange_item_2_fpoint.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -23,7 +22,7 @@ func (m *MsgMhfExchangeItem2Fpoint) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfExchangeItem2Fpoint) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfExchangeItem2Fpoint) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.TradeID = bf.ReadUint32() m.ItemType = bf.ReadUint16() @@ -33,6 +32,6 @@ func (m *MsgMhfExchangeItem2Fpoint) Parse(bf *byteframe.ByteFrame, ctx *clientct } // Build builds a binary packet from the current data. -func (m *MsgMhfExchangeItem2Fpoint) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfExchangeItem2Fpoint) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_exchange_kouryou_point.go b/network/mhfpacket/msg_mhf_exchange_kouryou_point.go index 5f9dfe9c7..f691a8e84 100644 --- a/network/mhfpacket/msg_mhf_exchange_kouryou_point.go +++ b/network/mhfpacket/msg_mhf_exchange_kouryou_point.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -20,13 +19,13 @@ func (m *MsgMhfExchangeKouryouPoint) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfExchangeKouryouPoint) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfExchangeKouryouPoint) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.KouryouPoints = bf.ReadUint32() return nil } // Build builds a binary packet from the current data. -func (m *MsgMhfExchangeKouryouPoint) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfExchangeKouryouPoint) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_exchange_weekly_stamp.go b/network/mhfpacket/msg_mhf_exchange_weekly_stamp.go index 1e735c6a3..edfe8ee5a 100644 --- a/network/mhfpacket/msg_mhf_exchange_weekly_stamp.go +++ b/network/mhfpacket/msg_mhf_exchange_weekly_stamp.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -21,7 +20,7 @@ func (m *MsgMhfExchangeWeeklyStamp) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfExchangeWeeklyStamp) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfExchangeWeeklyStamp) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() stampType := bf.ReadUint8() switch stampType { @@ -36,6 +35,6 @@ func (m *MsgMhfExchangeWeeklyStamp) Parse(bf *byteframe.ByteFrame, ctx *clientct } // Build builds a binary packet from the current data. -func (m *MsgMhfExchangeWeeklyStamp) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfExchangeWeeklyStamp) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_generate_ud_guild_map.go b/network/mhfpacket/msg_mhf_generate_ud_guild_map.go index 70eef35b6..a9e172400 100644 --- a/network/mhfpacket/msg_mhf_generate_ud_guild_map.go +++ b/network/mhfpacket/msg_mhf_generate_ud_guild_map.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -19,12 +18,12 @@ func (m *MsgMhfGenerateUdGuildMap) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfGenerateUdGuildMap) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGenerateUdGuildMap) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() return nil } // Build builds a binary packet from the current data. -func (m *MsgMhfGenerateUdGuildMap) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGenerateUdGuildMap) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_get_achievement.go b/network/mhfpacket/msg_mhf_get_achievement.go index a012145e9..b30f5799b 100644 --- a/network/mhfpacket/msg_mhf_get_achievement.go +++ b/network/mhfpacket/msg_mhf_get_achievement.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -20,7 +19,7 @@ func (m *MsgMhfGetAchievement) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfGetAchievement) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetAchievement) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.CharID = bf.ReadUint32() bf.ReadUint32() // Zeroed @@ -28,6 +27,6 @@ func (m *MsgMhfGetAchievement) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Cli } // Build builds a binary packet from the current data. -func (m *MsgMhfGetAchievement) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetAchievement) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_get_additional_beat_reward.go b/network/mhfpacket/msg_mhf_get_additional_beat_reward.go index 2539a3b57..d06b143f5 100644 --- a/network/mhfpacket/msg_mhf_get_additional_beat_reward.go +++ b/network/mhfpacket/msg_mhf_get_additional_beat_reward.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -24,7 +23,7 @@ func (m *MsgMhfGetAdditionalBeatReward) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfGetAdditionalBeatReward) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetAdditionalBeatReward) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.Unk0 = bf.ReadUint32() m.Unk1 = bf.ReadUint32() @@ -34,6 +33,6 @@ func (m *MsgMhfGetAdditionalBeatReward) Parse(bf *byteframe.ByteFrame, ctx *clie } // Build builds a binary packet from the current data. -func (m *MsgMhfGetAdditionalBeatReward) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetAdditionalBeatReward) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_get_bbs_sns_status.go b/network/mhfpacket/msg_mhf_get_bbs_sns_status.go index 372bdc8cc..b86f9df8a 100644 --- a/network/mhfpacket/msg_mhf_get_bbs_sns_status.go +++ b/network/mhfpacket/msg_mhf_get_bbs_sns_status.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -20,13 +19,13 @@ func (m *MsgMhfGetBbsSnsStatus) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfGetBbsSnsStatus) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetBbsSnsStatus) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.Unk = bf.ReadBytes(12) return nil } // Build builds a binary packet from the current data. -func (m *MsgMhfGetBbsSnsStatus) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetBbsSnsStatus) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_get_bbs_user_status.go b/network/mhfpacket/msg_mhf_get_bbs_user_status.go index d4c5f5e72..0f0f60970 100644 --- a/network/mhfpacket/msg_mhf_get_bbs_user_status.go +++ b/network/mhfpacket/msg_mhf_get_bbs_user_status.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -20,13 +19,13 @@ func (m *MsgMhfGetBbsUserStatus) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfGetBbsUserStatus) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetBbsUserStatus) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.Unk = bf.ReadBytes(12) return nil } // Build builds a binary packet from the current data. -func (m *MsgMhfGetBbsUserStatus) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetBbsUserStatus) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_get_boost_right.go b/network/mhfpacket/msg_mhf_get_boost_right.go index 314db104e..b1e658c36 100644 --- a/network/mhfpacket/msg_mhf_get_boost_right.go +++ b/network/mhfpacket/msg_mhf_get_boost_right.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -19,12 +18,12 @@ func (m *MsgMhfGetBoostRight) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfGetBoostRight) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetBoostRight) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() return nil } // Build builds a binary packet from the current data. -func (m *MsgMhfGetBoostRight) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetBoostRight) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_get_boost_time.go b/network/mhfpacket/msg_mhf_get_boost_time.go index 14e42deb5..a30d71741 100644 --- a/network/mhfpacket/msg_mhf_get_boost_time.go +++ b/network/mhfpacket/msg_mhf_get_boost_time.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -19,12 +18,12 @@ func (m *MsgMhfGetBoostTime) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfGetBoostTime) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetBoostTime) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() return nil } // Build builds a binary packet from the current data. -func (m *MsgMhfGetBoostTime) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetBoostTime) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_get_boost_time_limit.go b/network/mhfpacket/msg_mhf_get_boost_time_limit.go index fc912fef9..6f0013152 100644 --- a/network/mhfpacket/msg_mhf_get_boost_time_limit.go +++ b/network/mhfpacket/msg_mhf_get_boost_time_limit.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -19,12 +18,12 @@ func (m *MsgMhfGetBoostTimeLimit) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfGetBoostTimeLimit) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetBoostTimeLimit) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() return nil } // Build builds a binary packet from the current data. -func (m *MsgMhfGetBoostTimeLimit) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetBoostTimeLimit) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_get_box_gacha_info.go b/network/mhfpacket/msg_mhf_get_box_gacha_info.go index 4e80e48fc..59ee8ee10 100644 --- a/network/mhfpacket/msg_mhf_get_box_gacha_info.go +++ b/network/mhfpacket/msg_mhf_get_box_gacha_info.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -20,13 +19,13 @@ func (m *MsgMhfGetBoxGachaInfo) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfGetBoxGachaInfo) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetBoxGachaInfo) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.GachaID = bf.ReadUint32() return nil } // Build builds a binary packet from the current data. -func (m *MsgMhfGetBoxGachaInfo) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetBoxGachaInfo) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_get_break_seibatu_level_reward.go b/network/mhfpacket/msg_mhf_get_break_seibatu_level_reward.go index 756d39f4c..5013f5821 100644 --- a/network/mhfpacket/msg_mhf_get_break_seibatu_level_reward.go +++ b/network/mhfpacket/msg_mhf_get_break_seibatu_level_reward.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -21,7 +20,7 @@ func (m *MsgMhfGetBreakSeibatuLevelReward) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfGetBreakSeibatuLevelReward) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetBreakSeibatuLevelReward) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.Unk0 = bf.ReadUint32() m.Unk1 = bf.ReadInt32() @@ -29,6 +28,6 @@ func (m *MsgMhfGetBreakSeibatuLevelReward) Parse(bf *byteframe.ByteFrame, ctx *c } // Build builds a binary packet from the current data. -func (m *MsgMhfGetBreakSeibatuLevelReward) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetBreakSeibatuLevelReward) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_get_ca_achievement_hist.go b/network/mhfpacket/msg_mhf_get_ca_achievement_hist.go index 8ff2721ac..e021fafd4 100644 --- a/network/mhfpacket/msg_mhf_get_ca_achievement_hist.go +++ b/network/mhfpacket/msg_mhf_get_ca_achievement_hist.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgMhfGetCaAchievementHist) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfGetCaAchievementHist) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetCaAchievementHist) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgMhfGetCaAchievementHist) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetCaAchievementHist) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_get_ca_unique_id.go b/network/mhfpacket/msg_mhf_get_ca_unique_id.go index 31e69c34f..aa616b576 100644 --- a/network/mhfpacket/msg_mhf_get_ca_unique_id.go +++ b/network/mhfpacket/msg_mhf_get_ca_unique_id.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgMhfGetCaUniqueID) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfGetCaUniqueID) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetCaUniqueID) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgMhfGetCaUniqueID) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetCaUniqueID) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_get_cafe_duration.go b/network/mhfpacket/msg_mhf_get_cafe_duration.go index 080a228e5..e92c747a2 100644 --- a/network/mhfpacket/msg_mhf_get_cafe_duration.go +++ b/network/mhfpacket/msg_mhf_get_cafe_duration.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -19,12 +18,12 @@ func (m *MsgMhfGetCafeDuration) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfGetCafeDuration) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetCafeDuration) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() return nil } // Build builds a binary packet from the current data. -func (m *MsgMhfGetCafeDuration) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetCafeDuration) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_get_cafe_duration_bonus_info.go b/network/mhfpacket/msg_mhf_get_cafe_duration_bonus_info.go index a952ca963..3de91a87f 100644 --- a/network/mhfpacket/msg_mhf_get_cafe_duration_bonus_info.go +++ b/network/mhfpacket/msg_mhf_get_cafe_duration_bonus_info.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -19,12 +18,12 @@ func (m *MsgMhfGetCafeDurationBonusInfo) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfGetCafeDurationBonusInfo) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetCafeDurationBonusInfo) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() return nil } // Build builds a binary packet from the current data. -func (m *MsgMhfGetCafeDurationBonusInfo) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetCafeDurationBonusInfo) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_get_cog_info.go b/network/mhfpacket/msg_mhf_get_cog_info.go index 93f0eefed..f823e3de4 100644 --- a/network/mhfpacket/msg_mhf_get_cog_info.go +++ b/network/mhfpacket/msg_mhf_get_cog_info.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgMhfGetCogInfo) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfGetCogInfo) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetCogInfo) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgMhfGetCogInfo) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetCogInfo) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_get_daily_mission_master.go b/network/mhfpacket/msg_mhf_get_daily_mission_master.go index be4b020e7..edc2ebe92 100644 --- a/network/mhfpacket/msg_mhf_get_daily_mission_master.go +++ b/network/mhfpacket/msg_mhf_get_daily_mission_master.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgMhfGetDailyMissionMaster) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfGetDailyMissionMaster) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetDailyMissionMaster) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgMhfGetDailyMissionMaster) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetDailyMissionMaster) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_get_daily_mission_personal.go b/network/mhfpacket/msg_mhf_get_daily_mission_personal.go index ecb53c4a1..b907eeee0 100644 --- a/network/mhfpacket/msg_mhf_get_daily_mission_personal.go +++ b/network/mhfpacket/msg_mhf_get_daily_mission_personal.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgMhfGetDailyMissionPersonal) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfGetDailyMissionPersonal) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetDailyMissionPersonal) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgMhfGetDailyMissionPersonal) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetDailyMissionPersonal) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_get_dist_description.go b/network/mhfpacket/msg_mhf_get_dist_description.go index 408d7d00c..26b159e41 100644 --- a/network/mhfpacket/msg_mhf_get_dist_description.go +++ b/network/mhfpacket/msg_mhf_get_dist_description.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -21,7 +20,7 @@ func (m *MsgMhfGetDistDescription) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfGetDistDescription) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetDistDescription) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.Unk0 = bf.ReadUint8() m.DistributionID = bf.ReadUint32() @@ -29,6 +28,6 @@ func (m *MsgMhfGetDistDescription) Parse(bf *byteframe.ByteFrame, ctx *clientctx } // Build builds a binary packet from the current data. -func (m *MsgMhfGetDistDescription) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetDistDescription) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_get_earth_status.go b/network/mhfpacket/msg_mhf_get_earth_status.go index 7ab49d8bd..1479641e5 100644 --- a/network/mhfpacket/msg_mhf_get_earth_status.go +++ b/network/mhfpacket/msg_mhf_get_earth_status.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -21,7 +20,7 @@ func (m *MsgMhfGetEarthStatus) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfGetEarthStatus) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetEarthStatus) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.Unk0 = bf.ReadUint32() m.Unk1 = bf.ReadUint32() @@ -29,6 +28,6 @@ func (m *MsgMhfGetEarthStatus) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Cli } // Build builds a binary packet from the current data. -func (m *MsgMhfGetEarthStatus) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetEarthStatus) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_get_earth_value.go b/network/mhfpacket/msg_mhf_get_earth_value.go index c9325c91a..aca57d5c0 100644 --- a/network/mhfpacket/msg_mhf_get_earth_value.go +++ b/network/mhfpacket/msg_mhf_get_earth_value.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -26,7 +25,7 @@ func (m *MsgMhfGetEarthValue) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfGetEarthValue) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetEarthValue) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.Unk0 = bf.ReadUint32() m.Unk1 = bf.ReadUint32() @@ -39,6 +38,6 @@ func (m *MsgMhfGetEarthValue) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Clie } // Build builds a binary packet from the current data. -func (m *MsgMhfGetEarthValue) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetEarthValue) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_get_enhanced_minidata.go b/network/mhfpacket/msg_mhf_get_enhanced_minidata.go index 7f6fe8b38..4f40bee5a 100644 --- a/network/mhfpacket/msg_mhf_get_enhanced_minidata.go +++ b/network/mhfpacket/msg_mhf_get_enhanced_minidata.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -20,13 +19,13 @@ func (m *MsgMhfGetEnhancedMinidata) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfGetEnhancedMinidata) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetEnhancedMinidata) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.CharID = bf.ReadUint32() return nil } // Build builds a binary packet from the current data. -func (m *MsgMhfGetEnhancedMinidata) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetEnhancedMinidata) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_get_equip_skin_hist.go b/network/mhfpacket/msg_mhf_get_equip_skin_hist.go index 53628b8fd..cde41ddaf 100644 --- a/network/mhfpacket/msg_mhf_get_equip_skin_hist.go +++ b/network/mhfpacket/msg_mhf_get_equip_skin_hist.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -19,12 +18,12 @@ func (m *MsgMhfGetEquipSkinHist) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfGetEquipSkinHist) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetEquipSkinHist) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() return nil } // Build builds a binary packet from the current data. -func (m *MsgMhfGetEquipSkinHist) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetEquipSkinHist) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_get_etc_points.go b/network/mhfpacket/msg_mhf_get_etc_points.go index efba17e87..1d051ccaf 100644 --- a/network/mhfpacket/msg_mhf_get_etc_points.go +++ b/network/mhfpacket/msg_mhf_get_etc_points.go @@ -2,7 +2,6 @@ package mhfpacket import ( "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,12 +16,12 @@ func (m *MsgMhfGetEtcPoints) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfGetEtcPoints) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetEtcPoints) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() return nil } // Build builds a binary packet from the current data. -func (m *MsgMhfGetEtcPoints) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetEtcPoints) Build(bf *byteframe.ByteFrame) error { return nil } diff --git a/network/mhfpacket/msg_mhf_get_extra_info.go b/network/mhfpacket/msg_mhf_get_extra_info.go index 88fb6f227..492dce7b5 100644 --- a/network/mhfpacket/msg_mhf_get_extra_info.go +++ b/network/mhfpacket/msg_mhf_get_extra_info.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgMhfGetExtraInfo) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfGetExtraInfo) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetExtraInfo) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgMhfGetExtraInfo) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetExtraInfo) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_get_fixed_seibatu_ranking_table.go b/network/mhfpacket/msg_mhf_get_fixed_seibatu_ranking_table.go index 53054af40..778c19e75 100644 --- a/network/mhfpacket/msg_mhf_get_fixed_seibatu_ranking_table.go +++ b/network/mhfpacket/msg_mhf_get_fixed_seibatu_ranking_table.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -24,7 +23,7 @@ func (m *MsgMhfGetFixedSeibatuRankingTable) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfGetFixedSeibatuRankingTable) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetFixedSeibatuRankingTable) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.Unk0 = bf.ReadUint32() m.Unk1 = bf.ReadInt32() @@ -35,6 +34,6 @@ func (m *MsgMhfGetFixedSeibatuRankingTable) Parse(bf *byteframe.ByteFrame, ctx * } // Build builds a binary packet from the current data. -func (m *MsgMhfGetFixedSeibatuRankingTable) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetFixedSeibatuRankingTable) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_get_fpoint_exchange_list.go b/network/mhfpacket/msg_mhf_get_fpoint_exchange_list.go index bb410b695..d576f5b70 100644 --- a/network/mhfpacket/msg_mhf_get_fpoint_exchange_list.go +++ b/network/mhfpacket/msg_mhf_get_fpoint_exchange_list.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -19,12 +18,12 @@ func (m *MsgMhfGetFpointExchangeList) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfGetFpointExchangeList) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetFpointExchangeList) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() return nil } // Build builds a binary packet from the current data. -func (m *MsgMhfGetFpointExchangeList) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetFpointExchangeList) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_get_gacha_play_history.go b/network/mhfpacket/msg_mhf_get_gacha_play_history.go index dacea3517..a2c556bec 100644 --- a/network/mhfpacket/msg_mhf_get_gacha_play_history.go +++ b/network/mhfpacket/msg_mhf_get_gacha_play_history.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -20,13 +19,13 @@ func (m *MsgMhfGetGachaPlayHistory) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfGetGachaPlayHistory) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetGachaPlayHistory) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.GachaID = bf.ReadUint32() return nil } // Build builds a binary packet from the current data. -func (m *MsgMhfGetGachaPlayHistory) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetGachaPlayHistory) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_get_gacha_point.go b/network/mhfpacket/msg_mhf_get_gacha_point.go index a980be8a0..f3d34e270 100644 --- a/network/mhfpacket/msg_mhf_get_gacha_point.go +++ b/network/mhfpacket/msg_mhf_get_gacha_point.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -19,12 +18,12 @@ func (m *MsgMhfGetGachaPoint) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfGetGachaPoint) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetGachaPoint) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() return nil } // Build builds a binary packet from the current data. -func (m *MsgMhfGetGachaPoint) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetGachaPoint) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_get_gem_info.go b/network/mhfpacket/msg_mhf_get_gem_info.go index c44c36679..d76e117d3 100644 --- a/network/mhfpacket/msg_mhf_get_gem_info.go +++ b/network/mhfpacket/msg_mhf_get_gem_info.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -26,7 +25,7 @@ func (m *MsgMhfGetGemInfo) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfGetGemInfo) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetGemInfo) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.Unk0 = bf.ReadUint32() m.Unk1 = bf.ReadUint32() @@ -39,6 +38,6 @@ func (m *MsgMhfGetGemInfo) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientC } // Build builds a binary packet from the current data. -func (m *MsgMhfGetGemInfo) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetGemInfo) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_get_guild_manage_right.go b/network/mhfpacket/msg_mhf_get_guild_manage_right.go index bf9056b9c..9a56fd0ae 100644 --- a/network/mhfpacket/msg_mhf_get_guild_manage_right.go +++ b/network/mhfpacket/msg_mhf_get_guild_manage_right.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -19,12 +18,12 @@ func (m *MsgMhfGetGuildManageRight) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfGetGuildManageRight) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetGuildManageRight) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() return nil } // Build builds a binary packet from the current data. -func (m *MsgMhfGetGuildManageRight) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetGuildManageRight) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_get_guild_mission_list.go b/network/mhfpacket/msg_mhf_get_guild_mission_list.go index 80739f26a..9aedfa819 100644 --- a/network/mhfpacket/msg_mhf_get_guild_mission_list.go +++ b/network/mhfpacket/msg_mhf_get_guild_mission_list.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -19,12 +18,12 @@ func (m *MsgMhfGetGuildMissionList) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfGetGuildMissionList) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetGuildMissionList) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() return nil } // Build builds a binary packet from the current data. -func (m *MsgMhfGetGuildMissionList) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetGuildMissionList) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_get_guild_mission_record.go b/network/mhfpacket/msg_mhf_get_guild_mission_record.go index 4b82ed968..02163b272 100644 --- a/network/mhfpacket/msg_mhf_get_guild_mission_record.go +++ b/network/mhfpacket/msg_mhf_get_guild_mission_record.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -19,12 +18,12 @@ func (m *MsgMhfGetGuildMissionRecord) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfGetGuildMissionRecord) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetGuildMissionRecord) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() return nil } // Build builds a binary packet from the current data. -func (m *MsgMhfGetGuildMissionRecord) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetGuildMissionRecord) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_get_guild_scout_list.go b/network/mhfpacket/msg_mhf_get_guild_scout_list.go index 01516b8e7..0d3ddc1fe 100644 --- a/network/mhfpacket/msg_mhf_get_guild_scout_list.go +++ b/network/mhfpacket/msg_mhf_get_guild_scout_list.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -19,12 +18,12 @@ func (m *MsgMhfGetGuildScoutList) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfGetGuildScoutList) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetGuildScoutList) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() return nil } // Build builds a binary packet from the current data. -func (m *MsgMhfGetGuildScoutList) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetGuildScoutList) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_get_guild_target_member_num.go b/network/mhfpacket/msg_mhf_get_guild_target_member_num.go index b25f5facd..84a2e87be 100644 --- a/network/mhfpacket/msg_mhf_get_guild_target_member_num.go +++ b/network/mhfpacket/msg_mhf_get_guild_target_member_num.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -21,7 +20,7 @@ func (m *MsgMhfGetGuildTargetMemberNum) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfGetGuildTargetMemberNum) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetGuildTargetMemberNum) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.GuildID = bf.ReadUint32() m.Unk = bf.ReadUint8() @@ -29,6 +28,6 @@ func (m *MsgMhfGetGuildTargetMemberNum) Parse(bf *byteframe.ByteFrame, ctx *clie } // Build builds a binary packet from the current data. -func (m *MsgMhfGetGuildTargetMemberNum) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetGuildTargetMemberNum) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_get_guild_tresure_souvenir.go b/network/mhfpacket/msg_mhf_get_guild_tresure_souvenir.go index 4ef9d6849..f7712475f 100644 --- a/network/mhfpacket/msg_mhf_get_guild_tresure_souvenir.go +++ b/network/mhfpacket/msg_mhf_get_guild_tresure_souvenir.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -19,12 +18,12 @@ func (m *MsgMhfGetGuildTresureSouvenir) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfGetGuildTresureSouvenir) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetGuildTresureSouvenir) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() return nil } // Build builds a binary packet from the current data. -func (m *MsgMhfGetGuildTresureSouvenir) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetGuildTresureSouvenir) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_get_guild_weekly_bonus_active_count.go b/network/mhfpacket/msg_mhf_get_guild_weekly_bonus_active_count.go index 6ce17ba9e..9696b685f 100644 --- a/network/mhfpacket/msg_mhf_get_guild_weekly_bonus_active_count.go +++ b/network/mhfpacket/msg_mhf_get_guild_weekly_bonus_active_count.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -19,12 +18,12 @@ func (m *MsgMhfGetGuildWeeklyBonusActiveCount) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfGetGuildWeeklyBonusActiveCount) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetGuildWeeklyBonusActiveCount) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() return nil } // Build builds a binary packet from the current data. -func (m *MsgMhfGetGuildWeeklyBonusActiveCount) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetGuildWeeklyBonusActiveCount) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_get_guild_weekly_bonus_master.go b/network/mhfpacket/msg_mhf_get_guild_weekly_bonus_master.go index d65b42ff7..0f79e784c 100644 --- a/network/mhfpacket/msg_mhf_get_guild_weekly_bonus_master.go +++ b/network/mhfpacket/msg_mhf_get_guild_weekly_bonus_master.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -19,12 +18,12 @@ func (m *MsgMhfGetGuildWeeklyBonusMaster) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfGetGuildWeeklyBonusMaster) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetGuildWeeklyBonusMaster) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() return nil } // Build builds a binary packet from the current data. -func (m *MsgMhfGetGuildWeeklyBonusMaster) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetGuildWeeklyBonusMaster) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_get_keep_login_boost_status.go b/network/mhfpacket/msg_mhf_get_keep_login_boost_status.go index a6453d20d..7cf237b72 100644 --- a/network/mhfpacket/msg_mhf_get_keep_login_boost_status.go +++ b/network/mhfpacket/msg_mhf_get_keep_login_boost_status.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -19,12 +18,12 @@ func (m *MsgMhfGetKeepLoginBoostStatus) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfGetKeepLoginBoostStatus) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetKeepLoginBoostStatus) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() return nil } // Build builds a binary packet from the current data. -func (m *MsgMhfGetKeepLoginBoostStatus) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetKeepLoginBoostStatus) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_get_kiju_info.go b/network/mhfpacket/msg_mhf_get_kiju_info.go index 2137424dd..35eee71e5 100644 --- a/network/mhfpacket/msg_mhf_get_kiju_info.go +++ b/network/mhfpacket/msg_mhf_get_kiju_info.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -19,12 +18,12 @@ func (m *MsgMhfGetKijuInfo) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfGetKijuInfo) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetKijuInfo) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() return nil } // Build builds a binary packet from the current data. -func (m *MsgMhfGetKijuInfo) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetKijuInfo) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_get_kouryou_point.go b/network/mhfpacket/msg_mhf_get_kouryou_point.go index 8435abcf1..9cc68ba13 100644 --- a/network/mhfpacket/msg_mhf_get_kouryou_point.go +++ b/network/mhfpacket/msg_mhf_get_kouryou_point.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -19,12 +18,12 @@ func (m *MsgMhfGetKouryouPoint) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfGetKouryouPoint) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetKouryouPoint) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() return nil } // Build builds a binary packet from the current data. -func (m *MsgMhfGetKouryouPoint) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetKouryouPoint) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_get_lobby_crowd.go b/network/mhfpacket/msg_mhf_get_lobby_crowd.go index db1629a55..a9d057eba 100644 --- a/network/mhfpacket/msg_mhf_get_lobby_crowd.go +++ b/network/mhfpacket/msg_mhf_get_lobby_crowd.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -21,7 +20,7 @@ func (m *MsgMhfGetLobbyCrowd) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfGetLobbyCrowd) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetLobbyCrowd) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.Server = bf.ReadUint32() m.Room = bf.ReadUint32() @@ -29,6 +28,6 @@ func (m *MsgMhfGetLobbyCrowd) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Clie } // Build builds a binary packet from the current data. -func (m *MsgMhfGetLobbyCrowd) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetLobbyCrowd) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_get_myhouse_info.go b/network/mhfpacket/msg_mhf_get_myhouse_info.go index f043465ff..98ec0a4f1 100644 --- a/network/mhfpacket/msg_mhf_get_myhouse_info.go +++ b/network/mhfpacket/msg_mhf_get_myhouse_info.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -24,7 +23,7 @@ func (m *MsgMhfGetMyhouseInfo) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfGetMyhouseInfo) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetMyhouseInfo) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.Unk0 = bf.ReadUint32() m.DataSize = bf.ReadUint8() @@ -33,6 +32,6 @@ func (m *MsgMhfGetMyhouseInfo) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Cli } // Build builds a binary packet from the current data. -func (m *MsgMhfGetMyhouseInfo) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetMyhouseInfo) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_get_notice.go b/network/mhfpacket/msg_mhf_get_notice.go index 09aed0fbf..fe39df43a 100644 --- a/network/mhfpacket/msg_mhf_get_notice.go +++ b/network/mhfpacket/msg_mhf_get_notice.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -22,7 +21,7 @@ func (m *MsgMhfGetNotice) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfGetNotice) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetNotice) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.Unk0 = bf.ReadUint32() m.Unk1 = bf.ReadUint32() @@ -31,6 +30,6 @@ func (m *MsgMhfGetNotice) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientCo } // Build builds a binary packet from the current data. -func (m *MsgMhfGetNotice) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetNotice) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_get_paper_data.go b/network/mhfpacket/msg_mhf_get_paper_data.go index 37c856c1f..cd1fa1751 100644 --- a/network/mhfpacket/msg_mhf_get_paper_data.go +++ b/network/mhfpacket/msg_mhf_get_paper_data.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -23,7 +22,7 @@ func (m *MsgMhfGetPaperData) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfGetPaperData) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetPaperData) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.Unk0 = bf.ReadUint32() m.Unk1 = bf.ReadUint32() @@ -32,6 +31,6 @@ func (m *MsgMhfGetPaperData) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Clien } // Build builds a binary packet from the current data. -func (m *MsgMhfGetPaperData) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetPaperData) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_get_rand_from_table.go b/network/mhfpacket/msg_mhf_get_rand_from_table.go index bc21109b5..364e431f6 100644 --- a/network/mhfpacket/msg_mhf_get_rand_from_table.go +++ b/network/mhfpacket/msg_mhf_get_rand_from_table.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -20,13 +19,13 @@ func (m *MsgMhfGetRandFromTable) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfGetRandFromTable) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetRandFromTable) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.Results = bf.ReadUint16() return nil } // Build builds a binary packet from the current data. -func (m *MsgMhfGetRandFromTable) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetRandFromTable) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_get_reject_guild_scout.go b/network/mhfpacket/msg_mhf_get_reject_guild_scout.go index bf09e39f0..7bae3971b 100644 --- a/network/mhfpacket/msg_mhf_get_reject_guild_scout.go +++ b/network/mhfpacket/msg_mhf_get_reject_guild_scout.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -19,12 +18,12 @@ func (m *MsgMhfGetRejectGuildScout) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfGetRejectGuildScout) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetRejectGuildScout) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() return nil } // Build builds a binary packet from the current data. -func (m *MsgMhfGetRejectGuildScout) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetRejectGuildScout) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_get_rengoku_binary.go b/network/mhfpacket/msg_mhf_get_rengoku_binary.go index d48842d44..b82ce546f 100644 --- a/network/mhfpacket/msg_mhf_get_rengoku_binary.go +++ b/network/mhfpacket/msg_mhf_get_rengoku_binary.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -19,13 +18,13 @@ func (m *MsgMhfGetRengokuBinary) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfGetRengokuBinary) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetRengokuBinary) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() bf.ReadUint8() // Zeroed return nil } // Build builds a binary packet from the current data. -func (m *MsgMhfGetRengokuBinary) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetRengokuBinary) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_get_rengoku_ranking_rank.go b/network/mhfpacket/msg_mhf_get_rengoku_ranking_rank.go index 4bc15ee32..0f84e23b5 100644 --- a/network/mhfpacket/msg_mhf_get_rengoku_ranking_rank.go +++ b/network/mhfpacket/msg_mhf_get_rengoku_ranking_rank.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -19,12 +18,12 @@ func (m *MsgMhfGetRengokuRankingRank) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfGetRengokuRankingRank) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetRengokuRankingRank) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() return nil } // Build builds a binary packet from the current data. -func (m *MsgMhfGetRengokuRankingRank) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetRengokuRankingRank) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_get_restriction_event.go b/network/mhfpacket/msg_mhf_get_restriction_event.go index be1ff2b99..301845a7e 100644 --- a/network/mhfpacket/msg_mhf_get_restriction_event.go +++ b/network/mhfpacket/msg_mhf_get_restriction_event.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgMhfGetRestrictionEvent) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfGetRestrictionEvent) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetRestrictionEvent) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgMhfGetRestrictionEvent) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetRestrictionEvent) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_get_reward_song.go b/network/mhfpacket/msg_mhf_get_reward_song.go index d107128bb..13b5cd264 100644 --- a/network/mhfpacket/msg_mhf_get_reward_song.go +++ b/network/mhfpacket/msg_mhf_get_reward_song.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -19,12 +18,12 @@ func (m *MsgMhfGetRewardSong) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfGetRewardSong) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetRewardSong) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() return nil } // Build builds a binary packet from the current data. -func (m *MsgMhfGetRewardSong) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetRewardSong) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_get_ryoudama.go b/network/mhfpacket/msg_mhf_get_ryoudama.go index bbf54f527..0f3b96b59 100644 --- a/network/mhfpacket/msg_mhf_get_ryoudama.go +++ b/network/mhfpacket/msg_mhf_get_ryoudama.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -23,7 +22,7 @@ func (m *MsgMhfGetRyoudama) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfGetRyoudama) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetRyoudama) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.Request1 = bf.ReadUint8() m.Request2 = bf.ReadUint8() @@ -33,6 +32,6 @@ func (m *MsgMhfGetRyoudama) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Client } // Build builds a binary packet from the current data. -func (m *MsgMhfGetRyoudama) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetRyoudama) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_get_seibattle.go b/network/mhfpacket/msg_mhf_get_seibattle.go index 81d314e1a..f867c07a2 100644 --- a/network/mhfpacket/msg_mhf_get_seibattle.go +++ b/network/mhfpacket/msg_mhf_get_seibattle.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -24,7 +23,7 @@ func (m *MsgMhfGetSeibattle) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfGetSeibattle) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetSeibattle) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.Unk0 = bf.ReadUint8() m.Type = bf.ReadUint8() @@ -35,6 +34,6 @@ func (m *MsgMhfGetSeibattle) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Clien } // Build builds a binary packet from the current data. -func (m *MsgMhfGetSeibattle) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetSeibattle) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_get_senyu_daily_count.go b/network/mhfpacket/msg_mhf_get_senyu_daily_count.go index 51424c697..3756ee340 100644 --- a/network/mhfpacket/msg_mhf_get_senyu_daily_count.go +++ b/network/mhfpacket/msg_mhf_get_senyu_daily_count.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -19,12 +18,12 @@ func (m *MsgMhfGetSenyuDailyCount) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfGetSenyuDailyCount) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetSenyuDailyCount) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() return nil } // Build builds a binary packet from the current data. -func (m *MsgMhfGetSenyuDailyCount) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetSenyuDailyCount) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_get_stepup_status.go b/network/mhfpacket/msg_mhf_get_stepup_status.go index 83d8b7c6f..37524f648 100644 --- a/network/mhfpacket/msg_mhf_get_stepup_status.go +++ b/network/mhfpacket/msg_mhf_get_stepup_status.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -21,7 +20,7 @@ func (m *MsgMhfGetStepupStatus) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfGetStepupStatus) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetStepupStatus) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.GachaID = bf.ReadUint32() m.Unk = bf.ReadUint8() @@ -29,6 +28,6 @@ func (m *MsgMhfGetStepupStatus) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Cl } // Build builds a binary packet from the current data. -func (m *MsgMhfGetStepupStatus) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetStepupStatus) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_get_tenrouirai.go b/network/mhfpacket/msg_mhf_get_tenrouirai.go index 904d2ca91..3d962c9f0 100644 --- a/network/mhfpacket/msg_mhf_get_tenrouirai.go +++ b/network/mhfpacket/msg_mhf_get_tenrouirai.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -24,7 +23,7 @@ func (m *MsgMhfGetTenrouirai) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfGetTenrouirai) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetTenrouirai) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.Unk0 = bf.ReadUint8() m.Unk1 = bf.ReadUint8() @@ -35,6 +34,6 @@ func (m *MsgMhfGetTenrouirai) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Clie } // Build builds a binary packet from the current data. -func (m *MsgMhfGetTenrouirai) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetTenrouirai) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_get_tiny_bin.go b/network/mhfpacket/msg_mhf_get_tiny_bin.go index b1850b719..0c8279e7e 100644 --- a/network/mhfpacket/msg_mhf_get_tiny_bin.go +++ b/network/mhfpacket/msg_mhf_get_tiny_bin.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -23,7 +22,7 @@ func (m *MsgMhfGetTinyBin) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfGetTinyBin) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetTinyBin) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.Unk0 = bf.ReadUint8() m.Unk1 = bf.ReadUint8() @@ -32,6 +31,6 @@ func (m *MsgMhfGetTinyBin) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientC } // Build builds a binary packet from the current data. -func (m *MsgMhfGetTinyBin) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetTinyBin) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_get_tower_info.go b/network/mhfpacket/msg_mhf_get_tower_info.go index e523193ed..2e9e2fe1e 100644 --- a/network/mhfpacket/msg_mhf_get_tower_info.go +++ b/network/mhfpacket/msg_mhf_get_tower_info.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -22,7 +21,7 @@ func (m *MsgMhfGetTowerInfo) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfGetTowerInfo) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetTowerInfo) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.InfoType = bf.ReadUint32() m.Unk0 = bf.ReadUint32() @@ -31,6 +30,6 @@ func (m *MsgMhfGetTowerInfo) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Clien } // Build builds a binary packet from the current data. -func (m *MsgMhfGetTowerInfo) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetTowerInfo) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_get_trend_weapon.go b/network/mhfpacket/msg_mhf_get_trend_weapon.go index f3e718518..bb392bf63 100644 --- a/network/mhfpacket/msg_mhf_get_trend_weapon.go +++ b/network/mhfpacket/msg_mhf_get_trend_weapon.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -19,12 +18,12 @@ func (m *MsgMhfGetTrendWeapon) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfGetTrendWeapon) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetTrendWeapon) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() return nil } // Build builds a binary packet from the current data. -func (m *MsgMhfGetTrendWeapon) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetTrendWeapon) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_get_ud_bonus_quest_info.go b/network/mhfpacket/msg_mhf_get_ud_bonus_quest_info.go index 935304861..d3436026b 100644 --- a/network/mhfpacket/msg_mhf_get_ud_bonus_quest_info.go +++ b/network/mhfpacket/msg_mhf_get_ud_bonus_quest_info.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -19,12 +18,12 @@ func (m *MsgMhfGetUdBonusQuestInfo) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfGetUdBonusQuestInfo) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetUdBonusQuestInfo) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() return nil } // Build builds a binary packet from the current data. -func (m *MsgMhfGetUdBonusQuestInfo) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetUdBonusQuestInfo) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_get_ud_daily_present_list.go b/network/mhfpacket/msg_mhf_get_ud_daily_present_list.go index 86c80d842..62fe2ba77 100644 --- a/network/mhfpacket/msg_mhf_get_ud_daily_present_list.go +++ b/network/mhfpacket/msg_mhf_get_ud_daily_present_list.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -19,12 +18,12 @@ func (m *MsgMhfGetUdDailyPresentList) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfGetUdDailyPresentList) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetUdDailyPresentList) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() return nil } // Build builds a binary packet from the current data. -func (m *MsgMhfGetUdDailyPresentList) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetUdDailyPresentList) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_get_ud_guild_map_info.go b/network/mhfpacket/msg_mhf_get_ud_guild_map_info.go index 777071594..1f6d48d35 100644 --- a/network/mhfpacket/msg_mhf_get_ud_guild_map_info.go +++ b/network/mhfpacket/msg_mhf_get_ud_guild_map_info.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -19,12 +18,12 @@ func (m *MsgMhfGetUdGuildMapInfo) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfGetUdGuildMapInfo) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetUdGuildMapInfo) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() return nil } // Build builds a binary packet from the current data. -func (m *MsgMhfGetUdGuildMapInfo) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetUdGuildMapInfo) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_get_ud_info.go b/network/mhfpacket/msg_mhf_get_ud_info.go index 7fc3475d6..4adb8987b 100644 --- a/network/mhfpacket/msg_mhf_get_ud_info.go +++ b/network/mhfpacket/msg_mhf_get_ud_info.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -19,12 +18,12 @@ func (m *MsgMhfGetUdInfo) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfGetUdInfo) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetUdInfo) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() return nil } // Build builds a binary packet from the current data. -func (m *MsgMhfGetUdInfo) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetUdInfo) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_get_ud_monster_point.go b/network/mhfpacket/msg_mhf_get_ud_monster_point.go index d960d9292..d760e90f4 100644 --- a/network/mhfpacket/msg_mhf_get_ud_monster_point.go +++ b/network/mhfpacket/msg_mhf_get_ud_monster_point.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -19,12 +18,12 @@ func (m *MsgMhfGetUdMonsterPoint) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfGetUdMonsterPoint) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetUdMonsterPoint) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() return nil } // Build builds a binary packet from the current data. -func (m *MsgMhfGetUdMonsterPoint) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetUdMonsterPoint) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_get_ud_my_point.go b/network/mhfpacket/msg_mhf_get_ud_my_point.go index bbbacaf4a..9bbda936a 100644 --- a/network/mhfpacket/msg_mhf_get_ud_my_point.go +++ b/network/mhfpacket/msg_mhf_get_ud_my_point.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -19,12 +18,12 @@ func (m *MsgMhfGetUdMyPoint) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfGetUdMyPoint) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetUdMyPoint) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() return nil } // Build builds a binary packet from the current data. -func (m *MsgMhfGetUdMyPoint) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetUdMyPoint) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_get_ud_my_ranking.go b/network/mhfpacket/msg_mhf_get_ud_my_ranking.go index c85aabf65..4cc8d07f1 100644 --- a/network/mhfpacket/msg_mhf_get_ud_my_ranking.go +++ b/network/mhfpacket/msg_mhf_get_ud_my_ranking.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -19,12 +18,12 @@ func (m *MsgMhfGetUdMyRanking) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfGetUdMyRanking) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetUdMyRanking) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() return nil } // Build builds a binary packet from the current data. -func (m *MsgMhfGetUdMyRanking) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetUdMyRanking) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_get_ud_norma_present_list.go b/network/mhfpacket/msg_mhf_get_ud_norma_present_list.go index a0d7187a4..118a8ee0c 100644 --- a/network/mhfpacket/msg_mhf_get_ud_norma_present_list.go +++ b/network/mhfpacket/msg_mhf_get_ud_norma_present_list.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -19,12 +18,12 @@ func (m *MsgMhfGetUdNormaPresentList) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfGetUdNormaPresentList) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetUdNormaPresentList) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() return nil } // Build builds a binary packet from the current data. -func (m *MsgMhfGetUdNormaPresentList) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetUdNormaPresentList) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_get_ud_ranking.go b/network/mhfpacket/msg_mhf_get_ud_ranking.go index b544e86a3..670048c58 100644 --- a/network/mhfpacket/msg_mhf_get_ud_ranking.go +++ b/network/mhfpacket/msg_mhf_get_ud_ranking.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -20,13 +19,13 @@ func (m *MsgMhfGetUdRanking) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfGetUdRanking) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetUdRanking) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.Unk0 = bf.ReadUint8() return nil } // Build builds a binary packet from the current data. -func (m *MsgMhfGetUdRanking) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetUdRanking) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_get_ud_ranking_reward_list.go b/network/mhfpacket/msg_mhf_get_ud_ranking_reward_list.go index a435c0077..7d41e772e 100644 --- a/network/mhfpacket/msg_mhf_get_ud_ranking_reward_list.go +++ b/network/mhfpacket/msg_mhf_get_ud_ranking_reward_list.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -19,12 +18,12 @@ func (m *MsgMhfGetUdRankingRewardList) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfGetUdRankingRewardList) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetUdRankingRewardList) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() return nil } // Build builds a binary packet from the current data. -func (m *MsgMhfGetUdRankingRewardList) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetUdRankingRewardList) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_get_ud_schedule.go b/network/mhfpacket/msg_mhf_get_ud_schedule.go index 278113c2b..6a79d385d 100644 --- a/network/mhfpacket/msg_mhf_get_ud_schedule.go +++ b/network/mhfpacket/msg_mhf_get_ud_schedule.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -19,12 +18,12 @@ func (m *MsgMhfGetUdSchedule) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfGetUdSchedule) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetUdSchedule) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() return nil } // Build builds a binary packet from the current data. -func (m *MsgMhfGetUdSchedule) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetUdSchedule) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_get_ud_selected_color_info.go b/network/mhfpacket/msg_mhf_get_ud_selected_color_info.go index bf8b44128..5c184f87b 100644 --- a/network/mhfpacket/msg_mhf_get_ud_selected_color_info.go +++ b/network/mhfpacket/msg_mhf_get_ud_selected_color_info.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -19,12 +18,12 @@ func (m *MsgMhfGetUdSelectedColorInfo) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfGetUdSelectedColorInfo) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetUdSelectedColorInfo) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() return nil } // Build builds a binary packet from the current data. -func (m *MsgMhfGetUdSelectedColorInfo) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetUdSelectedColorInfo) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_get_ud_shop_coin.go b/network/mhfpacket/msg_mhf_get_ud_shop_coin.go index 7688dacd4..889e92ce7 100644 --- a/network/mhfpacket/msg_mhf_get_ud_shop_coin.go +++ b/network/mhfpacket/msg_mhf_get_ud_shop_coin.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -19,12 +18,12 @@ func (m *MsgMhfGetUdShopCoin) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfGetUdShopCoin) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetUdShopCoin) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() return nil } // Build builds a binary packet from the current data. -func (m *MsgMhfGetUdShopCoin) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetUdShopCoin) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_get_ud_tactics_bonus_quest.go b/network/mhfpacket/msg_mhf_get_ud_tactics_bonus_quest.go index c6e4a2888..19b78d8c4 100644 --- a/network/mhfpacket/msg_mhf_get_ud_tactics_bonus_quest.go +++ b/network/mhfpacket/msg_mhf_get_ud_tactics_bonus_quest.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -19,12 +18,12 @@ func (m *MsgMhfGetUdTacticsBonusQuest) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfGetUdTacticsBonusQuest) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetUdTacticsBonusQuest) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() return nil } // Build builds a binary packet from the current data. -func (m *MsgMhfGetUdTacticsBonusQuest) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetUdTacticsBonusQuest) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_get_ud_tactics_first_quest_bonus.go b/network/mhfpacket/msg_mhf_get_ud_tactics_first_quest_bonus.go index d81dd24b9..eff8ce95b 100644 --- a/network/mhfpacket/msg_mhf_get_ud_tactics_first_quest_bonus.go +++ b/network/mhfpacket/msg_mhf_get_ud_tactics_first_quest_bonus.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -19,12 +18,12 @@ func (m *MsgMhfGetUdTacticsFirstQuestBonus) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfGetUdTacticsFirstQuestBonus) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetUdTacticsFirstQuestBonus) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() return nil } // Build builds a binary packet from the current data. -func (m *MsgMhfGetUdTacticsFirstQuestBonus) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetUdTacticsFirstQuestBonus) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_get_ud_tactics_follower.go b/network/mhfpacket/msg_mhf_get_ud_tactics_follower.go index 32c05a270..9a4ae69e1 100644 --- a/network/mhfpacket/msg_mhf_get_ud_tactics_follower.go +++ b/network/mhfpacket/msg_mhf_get_ud_tactics_follower.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -19,12 +18,12 @@ func (m *MsgMhfGetUdTacticsFollower) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfGetUdTacticsFollower) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetUdTacticsFollower) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() return nil } // Build builds a binary packet from the current data. -func (m *MsgMhfGetUdTacticsFollower) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetUdTacticsFollower) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_get_ud_tactics_log.go b/network/mhfpacket/msg_mhf_get_ud_tactics_log.go index 6202bace8..a2c2ef34d 100644 --- a/network/mhfpacket/msg_mhf_get_ud_tactics_log.go +++ b/network/mhfpacket/msg_mhf_get_ud_tactics_log.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -19,12 +18,12 @@ func (m *MsgMhfGetUdTacticsLog) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfGetUdTacticsLog) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetUdTacticsLog) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() return nil } // Build builds a binary packet from the current data. -func (m *MsgMhfGetUdTacticsLog) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetUdTacticsLog) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_get_ud_tactics_point.go b/network/mhfpacket/msg_mhf_get_ud_tactics_point.go index a69f35ec2..9a047b27c 100644 --- a/network/mhfpacket/msg_mhf_get_ud_tactics_point.go +++ b/network/mhfpacket/msg_mhf_get_ud_tactics_point.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -19,12 +18,12 @@ func (m *MsgMhfGetUdTacticsPoint) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfGetUdTacticsPoint) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetUdTacticsPoint) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() return nil } // Build builds a binary packet from the current data. -func (m *MsgMhfGetUdTacticsPoint) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetUdTacticsPoint) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_get_ud_tactics_ranking.go b/network/mhfpacket/msg_mhf_get_ud_tactics_ranking.go index 2f2d6e860..4a1caf470 100644 --- a/network/mhfpacket/msg_mhf_get_ud_tactics_ranking.go +++ b/network/mhfpacket/msg_mhf_get_ud_tactics_ranking.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -20,13 +19,13 @@ func (m *MsgMhfGetUdTacticsRanking) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfGetUdTacticsRanking) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetUdTacticsRanking) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.GuildID = bf.ReadUint32() return nil } // Build builds a binary packet from the current data. -func (m *MsgMhfGetUdTacticsRanking) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetUdTacticsRanking) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_get_ud_tactics_remaining_point.go b/network/mhfpacket/msg_mhf_get_ud_tactics_remaining_point.go index e44b69bef..0fcba64e5 100644 --- a/network/mhfpacket/msg_mhf_get_ud_tactics_remaining_point.go +++ b/network/mhfpacket/msg_mhf_get_ud_tactics_remaining_point.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -22,7 +21,7 @@ func (m *MsgMhfGetUdTacticsRemainingPoint) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfGetUdTacticsRemainingPoint) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetUdTacticsRemainingPoint) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.Unk0 = bf.ReadUint32() m.Unk1 = bf.ReadUint32() @@ -31,6 +30,6 @@ func (m *MsgMhfGetUdTacticsRemainingPoint) Parse(bf *byteframe.ByteFrame, ctx *c } // Build builds a binary packet from the current data. -func (m *MsgMhfGetUdTacticsRemainingPoint) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetUdTacticsRemainingPoint) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_get_ud_tactics_reward_list.go b/network/mhfpacket/msg_mhf_get_ud_tactics_reward_list.go index 903b35752..58f1da29d 100644 --- a/network/mhfpacket/msg_mhf_get_ud_tactics_reward_list.go +++ b/network/mhfpacket/msg_mhf_get_ud_tactics_reward_list.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -19,12 +18,12 @@ func (m *MsgMhfGetUdTacticsRewardList) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfGetUdTacticsRewardList) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetUdTacticsRewardList) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() return nil } // Build builds a binary packet from the current data. -func (m *MsgMhfGetUdTacticsRewardList) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetUdTacticsRewardList) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_get_ud_total_point_info.go b/network/mhfpacket/msg_mhf_get_ud_total_point_info.go index 00602c70e..24ce05e8a 100644 --- a/network/mhfpacket/msg_mhf_get_ud_total_point_info.go +++ b/network/mhfpacket/msg_mhf_get_ud_total_point_info.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -19,12 +18,12 @@ func (m *MsgMhfGetUdTotalPointInfo) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfGetUdTotalPointInfo) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetUdTotalPointInfo) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() return nil } // Build builds a binary packet from the current data. -func (m *MsgMhfGetUdTotalPointInfo) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetUdTotalPointInfo) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_get_weekly_schedule.go b/network/mhfpacket/msg_mhf_get_weekly_schedule.go index f4475d847..950a0703b 100644 --- a/network/mhfpacket/msg_mhf_get_weekly_schedule.go +++ b/network/mhfpacket/msg_mhf_get_weekly_schedule.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -19,12 +18,12 @@ func (m *MsgMhfGetWeeklySchedule) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfGetWeeklySchedule) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetWeeklySchedule) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() return nil } // Build builds a binary packet from the current data. -func (m *MsgMhfGetWeeklySchedule) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetWeeklySchedule) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_get_weekly_seibatu_ranking_reward.go b/network/mhfpacket/msg_mhf_get_weekly_seibatu_ranking_reward.go index 2aa14d26f..9d5cbdf0d 100644 --- a/network/mhfpacket/msg_mhf_get_weekly_seibatu_ranking_reward.go +++ b/network/mhfpacket/msg_mhf_get_weekly_seibatu_ranking_reward.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -23,7 +22,7 @@ func (m *MsgMhfGetWeeklySeibatuRankingReward) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfGetWeeklySeibatuRankingReward) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetWeeklySeibatuRankingReward) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.Unk0 = bf.ReadUint32() m.Unk1 = bf.ReadUint32() @@ -33,6 +32,6 @@ func (m *MsgMhfGetWeeklySeibatuRankingReward) Parse(bf *byteframe.ByteFrame, ctx } // Build builds a binary packet from the current data. -func (m *MsgMhfGetWeeklySeibatuRankingReward) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGetWeeklySeibatuRankingReward) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_guild_huntdata.go b/network/mhfpacket/msg_mhf_guild_huntdata.go index ea411ac20..bb96d73b2 100644 --- a/network/mhfpacket/msg_mhf_guild_huntdata.go +++ b/network/mhfpacket/msg_mhf_guild_huntdata.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -21,7 +20,7 @@ func (m *MsgMhfGuildHuntdata) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfGuildHuntdata) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGuildHuntdata) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.Operation = bf.ReadUint8() if m.Operation == 1 { @@ -31,6 +30,6 @@ func (m *MsgMhfGuildHuntdata) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Clie } // Build builds a binary packet from the current data. -func (m *MsgMhfGuildHuntdata) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfGuildHuntdata) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_info_festa.go b/network/mhfpacket/msg_mhf_info_festa.go index e5bdb984a..550751369 100644 --- a/network/mhfpacket/msg_mhf_info_festa.go +++ b/network/mhfpacket/msg_mhf_info_festa.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -20,7 +19,7 @@ func (m *MsgMhfInfoFesta) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfInfoFesta) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfInfoFesta) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.Unk0 = bf.ReadUint8() bf.ReadUint8() // Zeroed @@ -30,6 +29,6 @@ func (m *MsgMhfInfoFesta) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientCo } // Build builds a binary packet from the current data. -func (m *MsgMhfInfoFesta) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfInfoFesta) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_info_guild.go b/network/mhfpacket/msg_mhf_info_guild.go index 084e74997..3951cc95a 100644 --- a/network/mhfpacket/msg_mhf_info_guild.go +++ b/network/mhfpacket/msg_mhf_info_guild.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -20,13 +19,13 @@ func (m *MsgMhfInfoGuild) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfInfoGuild) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfInfoGuild) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.GuildID = bf.ReadUint32() return nil } // Build builds a binary packet from the current data. -func (m *MsgMhfInfoGuild) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfInfoGuild) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_info_joint.go b/network/mhfpacket/msg_mhf_info_joint.go index 3048ff237..4c0b51dd1 100644 --- a/network/mhfpacket/msg_mhf_info_joint.go +++ b/network/mhfpacket/msg_mhf_info_joint.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -20,7 +19,7 @@ func (m *MsgMhfInfoJoint) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfInfoJoint) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfInfoJoint) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.AllianceID = bf.ReadUint32() bf.ReadUint32() // Zeroed @@ -28,6 +27,6 @@ func (m *MsgMhfInfoJoint) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientCo } // Build builds a binary packet from the current data. -func (m *MsgMhfInfoJoint) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfInfoJoint) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_info_scenario_counter.go b/network/mhfpacket/msg_mhf_info_scenario_counter.go index 8421502d5..70d83065b 100644 --- a/network/mhfpacket/msg_mhf_info_scenario_counter.go +++ b/network/mhfpacket/msg_mhf_info_scenario_counter.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -19,12 +18,12 @@ func (m *MsgMhfInfoScenarioCounter) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfInfoScenarioCounter) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfInfoScenarioCounter) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() return nil } // Build builds a binary packet from the current data. -func (m *MsgMhfInfoScenarioCounter) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfInfoScenarioCounter) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_info_tournament.go b/network/mhfpacket/msg_mhf_info_tournament.go index 448e63a73..dc61cbf3c 100644 --- a/network/mhfpacket/msg_mhf_info_tournament.go +++ b/network/mhfpacket/msg_mhf_info_tournament.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -21,7 +20,7 @@ func (m *MsgMhfInfoTournament) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfInfoTournament) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfInfoTournament) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.Unk0 = bf.ReadUint8() m.Unk1 = bf.ReadUint32() @@ -29,6 +28,6 @@ func (m *MsgMhfInfoTournament) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Cli } // Build builds a binary packet from the current data. -func (m *MsgMhfInfoTournament) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfInfoTournament) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_kick_export_force.go b/network/mhfpacket/msg_mhf_kick_export_force.go index 0507a3047..3c07aecbb 100644 --- a/network/mhfpacket/msg_mhf_kick_export_force.go +++ b/network/mhfpacket/msg_mhf_kick_export_force.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgMhfKickExportForce) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfKickExportForce) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfKickExportForce) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgMhfKickExportForce) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfKickExportForce) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_list_mail.go b/network/mhfpacket/msg_mhf_list_mail.go index 758f5e61f..1bb756d4a 100644 --- a/network/mhfpacket/msg_mhf_list_mail.go +++ b/network/mhfpacket/msg_mhf_list_mail.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -19,7 +18,7 @@ func (m *MsgMhfListMail) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfListMail) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfListMail) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() bf.ReadUint16() // Zeroed bf.ReadUint16() // Zeroed @@ -27,6 +26,6 @@ func (m *MsgMhfListMail) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientCon } // Build builds a binary packet from the current data. -func (m *MsgMhfListMail) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfListMail) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_list_member.go b/network/mhfpacket/msg_mhf_list_member.go index 59895dfae..5baf4c745 100644 --- a/network/mhfpacket/msg_mhf_list_member.go +++ b/network/mhfpacket/msg_mhf_list_member.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -20,7 +19,7 @@ func (m *MsgMhfListMember) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfListMember) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfListMember) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.Unk0 = bf.ReadUint8() bf.ReadUint8() // Zeroed @@ -28,6 +27,6 @@ func (m *MsgMhfListMember) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientC } // Build builds a binary packet from the current data. -func (m *MsgMhfListMember) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfListMember) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_load_deco_myset.go b/network/mhfpacket/msg_mhf_load_deco_myset.go index 3c25bf9c0..bedef9aa7 100644 --- a/network/mhfpacket/msg_mhf_load_deco_myset.go +++ b/network/mhfpacket/msg_mhf_load_deco_myset.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -19,12 +18,12 @@ func (m *MsgMhfLoadDecoMyset) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfLoadDecoMyset) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfLoadDecoMyset) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() return nil } // Build builds a binary packet from the current data. -func (m *MsgMhfLoadDecoMyset) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfLoadDecoMyset) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_load_favorite_quest.go b/network/mhfpacket/msg_mhf_load_favorite_quest.go index 47d888651..a5d9c6a96 100644 --- a/network/mhfpacket/msg_mhf_load_favorite_quest.go +++ b/network/mhfpacket/msg_mhf_load_favorite_quest.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -19,12 +18,12 @@ func (m *MsgMhfLoadFavoriteQuest) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfLoadFavoriteQuest) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfLoadFavoriteQuest) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() return nil } // Build builds a binary packet from the current data. -func (m *MsgMhfLoadFavoriteQuest) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfLoadFavoriteQuest) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_load_guild_adventure.go b/network/mhfpacket/msg_mhf_load_guild_adventure.go index 488c3e408..39ea41bd2 100644 --- a/network/mhfpacket/msg_mhf_load_guild_adventure.go +++ b/network/mhfpacket/msg_mhf_load_guild_adventure.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -19,12 +18,12 @@ func (m *MsgMhfLoadGuildAdventure) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfLoadGuildAdventure) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfLoadGuildAdventure) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() return nil } // Build builds a binary packet from the current data. -func (m *MsgMhfLoadGuildAdventure) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfLoadGuildAdventure) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_load_guild_cooking.go b/network/mhfpacket/msg_mhf_load_guild_cooking.go index fd41a3cbb..d0a2a00af 100644 --- a/network/mhfpacket/msg_mhf_load_guild_cooking.go +++ b/network/mhfpacket/msg_mhf_load_guild_cooking.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -20,13 +19,13 @@ func (m *MsgMhfLoadGuildCooking) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfLoadGuildCooking) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfLoadGuildCooking) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.MaxMeals = bf.ReadUint8() return nil } // Build builds a binary packet from the current data. -func (m *MsgMhfLoadGuildCooking) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfLoadGuildCooking) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_load_house.go b/network/mhfpacket/msg_mhf_load_house.go index 01e048aee..61e147b96 100644 --- a/network/mhfpacket/msg_mhf_load_house.go +++ b/network/mhfpacket/msg_mhf_load_house.go @@ -5,7 +5,6 @@ import ( "erupe-ce/utils/stringsupport" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -25,7 +24,7 @@ func (m *MsgMhfLoadHouse) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfLoadHouse) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfLoadHouse) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.CharID = bf.ReadUint32() m.Destination = bf.ReadUint8() @@ -37,6 +36,6 @@ func (m *MsgMhfLoadHouse) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientCo } // Build builds a binary packet from the current data. -func (m *MsgMhfLoadHouse) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfLoadHouse) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_load_hunter_navi.go b/network/mhfpacket/msg_mhf_load_hunter_navi.go index 9232966ad..a033f93b3 100644 --- a/network/mhfpacket/msg_mhf_load_hunter_navi.go +++ b/network/mhfpacket/msg_mhf_load_hunter_navi.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -19,12 +18,12 @@ func (m *MsgMhfLoadHunterNavi) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfLoadHunterNavi) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfLoadHunterNavi) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() return nil } // Build builds a binary packet from the current data. -func (m *MsgMhfLoadHunterNavi) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfLoadHunterNavi) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_load_legend_dispatch.go b/network/mhfpacket/msg_mhf_load_legend_dispatch.go index ffacdd8f5..21e202991 100644 --- a/network/mhfpacket/msg_mhf_load_legend_dispatch.go +++ b/network/mhfpacket/msg_mhf_load_legend_dispatch.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -19,12 +18,12 @@ func (m *MsgMhfLoadLegendDispatch) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfLoadLegendDispatch) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfLoadLegendDispatch) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() return nil } // Build builds a binary packet from the current data. -func (m *MsgMhfLoadLegendDispatch) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfLoadLegendDispatch) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_load_mezfes_data.go b/network/mhfpacket/msg_mhf_load_mezfes_data.go index 921ee2b3d..e59c0b5e0 100644 --- a/network/mhfpacket/msg_mhf_load_mezfes_data.go +++ b/network/mhfpacket/msg_mhf_load_mezfes_data.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -19,12 +18,12 @@ func (m *MsgMhfLoadMezfesData) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfLoadMezfesData) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfLoadMezfesData) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() return nil } // Build builds a binary packet from the current data. -func (m *MsgMhfLoadMezfesData) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfLoadMezfesData) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_load_otomo_airou.go b/network/mhfpacket/msg_mhf_load_otomo_airou.go index 0b4e22c7e..a65f0183c 100644 --- a/network/mhfpacket/msg_mhf_load_otomo_airou.go +++ b/network/mhfpacket/msg_mhf_load_otomo_airou.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -19,12 +18,12 @@ func (m *MsgMhfLoadOtomoAirou) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfLoadOtomoAirou) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfLoadOtomoAirou) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() return nil } // Build builds a binary packet from the current data. -func (m *MsgMhfLoadOtomoAirou) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfLoadOtomoAirou) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_load_partner.go b/network/mhfpacket/msg_mhf_load_partner.go index 4a59ccd57..3ab807def 100644 --- a/network/mhfpacket/msg_mhf_load_partner.go +++ b/network/mhfpacket/msg_mhf_load_partner.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -19,12 +18,12 @@ func (m *MsgMhfLoadPartner) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfLoadPartner) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfLoadPartner) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() return nil } // Build builds a binary packet from the current data. -func (m *MsgMhfLoadPartner) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfLoadPartner) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_load_plate_box.go b/network/mhfpacket/msg_mhf_load_plate_box.go index 65744978a..7b2deec5e 100644 --- a/network/mhfpacket/msg_mhf_load_plate_box.go +++ b/network/mhfpacket/msg_mhf_load_plate_box.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -19,12 +18,12 @@ func (m *MsgMhfLoadPlateBox) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfLoadPlateBox) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfLoadPlateBox) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() return nil } // Build builds a binary packet from the current data. -func (m *MsgMhfLoadPlateBox) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfLoadPlateBox) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_load_plate_data.go b/network/mhfpacket/msg_mhf_load_plate_data.go index d5e768a35..937579cd9 100644 --- a/network/mhfpacket/msg_mhf_load_plate_data.go +++ b/network/mhfpacket/msg_mhf_load_plate_data.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -19,12 +18,12 @@ func (m *MsgMhfLoadPlateData) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfLoadPlateData) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfLoadPlateData) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() return nil } // Build builds a binary packet from the current data. -func (m *MsgMhfLoadPlateData) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfLoadPlateData) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_load_plate_myset.go b/network/mhfpacket/msg_mhf_load_plate_myset.go index 7e36df0c5..5f1abca79 100644 --- a/network/mhfpacket/msg_mhf_load_plate_myset.go +++ b/network/mhfpacket/msg_mhf_load_plate_myset.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -19,12 +18,12 @@ func (m *MsgMhfLoadPlateMyset) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfLoadPlateMyset) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfLoadPlateMyset) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() return nil } // Build builds a binary packet from the current data. -func (m *MsgMhfLoadPlateMyset) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfLoadPlateMyset) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_load_rengoku_data.go b/network/mhfpacket/msg_mhf_load_rengoku_data.go index 091906cec..c66b59063 100644 --- a/network/mhfpacket/msg_mhf_load_rengoku_data.go +++ b/network/mhfpacket/msg_mhf_load_rengoku_data.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -19,12 +18,12 @@ func (m *MsgMhfLoadRengokuData) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfLoadRengokuData) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfLoadRengokuData) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() return nil } // Build builds a binary packet from the current data. -func (m *MsgMhfLoadRengokuData) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfLoadRengokuData) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_load_scenario_data.go b/network/mhfpacket/msg_mhf_load_scenario_data.go index f2b793593..390868ada 100644 --- a/network/mhfpacket/msg_mhf_load_scenario_data.go +++ b/network/mhfpacket/msg_mhf_load_scenario_data.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -19,12 +18,12 @@ func (m *MsgMhfLoadScenarioData) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfLoadScenarioData) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfLoadScenarioData) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() return nil } // Build builds a binary packet from the current data. -func (m *MsgMhfLoadScenarioData) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfLoadScenarioData) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_loaddata.go b/network/mhfpacket/msg_mhf_loaddata.go index dd2be28a3..643433b7f 100644 --- a/network/mhfpacket/msg_mhf_loaddata.go +++ b/network/mhfpacket/msg_mhf_loaddata.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -19,12 +18,12 @@ func (m *MsgMhfLoaddata) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfLoaddata) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfLoaddata) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() return nil } // Build builds a binary packet from the current data. -func (m *MsgMhfLoaddata) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfLoaddata) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_mercenary_huntdata.go b/network/mhfpacket/msg_mhf_mercenary_huntdata.go index 61f94e7c3..98d79e50c 100644 --- a/network/mhfpacket/msg_mhf_mercenary_huntdata.go +++ b/network/mhfpacket/msg_mhf_mercenary_huntdata.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -20,13 +19,13 @@ func (m *MsgMhfMercenaryHuntdata) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfMercenaryHuntdata) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfMercenaryHuntdata) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.Unk0 = bf.ReadUint8() return nil } // Build builds a binary packet from the current data. -func (m *MsgMhfMercenaryHuntdata) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfMercenaryHuntdata) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_operate_guild.go b/network/mhfpacket/msg_mhf_operate_guild.go index 0359555fb..de9941cfa 100644 --- a/network/mhfpacket/msg_mhf_operate_guild.go +++ b/network/mhfpacket/msg_mhf_operate_guild.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -55,7 +54,7 @@ func (m *MsgMhfOperateGuild) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfOperateGuild) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfOperateGuild) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.GuildID = bf.ReadUint32() m.Action = OperateGuildAction(bf.ReadUint8()) @@ -66,6 +65,6 @@ func (m *MsgMhfOperateGuild) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Clien } // Build builds a binary packet from the current data. -func (m *MsgMhfOperateGuild) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfOperateGuild) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_operate_guild_member.go b/network/mhfpacket/msg_mhf_operate_guild_member.go index 4b63c5d90..00f0d5fdb 100644 --- a/network/mhfpacket/msg_mhf_operate_guild_member.go +++ b/network/mhfpacket/msg_mhf_operate_guild_member.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -31,7 +30,7 @@ func (m *MsgMhfOperateGuildMember) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfOperateGuildMember) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfOperateGuildMember) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.GuildID = bf.ReadUint32() m.CharID = bf.ReadUint32() @@ -42,6 +41,6 @@ func (m *MsgMhfOperateGuildMember) Parse(bf *byteframe.ByteFrame, ctx *clientctx } // Build builds a binary packet from the current data. -func (m *MsgMhfOperateGuildMember) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfOperateGuildMember) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_operate_guild_tresure_report.go b/network/mhfpacket/msg_mhf_operate_guild_tresure_report.go index 5a9f9d27e..536c17c12 100644 --- a/network/mhfpacket/msg_mhf_operate_guild_tresure_report.go +++ b/network/mhfpacket/msg_mhf_operate_guild_tresure_report.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -21,7 +20,7 @@ func (m *MsgMhfOperateGuildTresureReport) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfOperateGuildTresureReport) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfOperateGuildTresureReport) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.HuntID = bf.ReadUint32() m.State = bf.ReadUint16() @@ -29,6 +28,6 @@ func (m *MsgMhfOperateGuildTresureReport) Parse(bf *byteframe.ByteFrame, ctx *cl } // Build builds a binary packet from the current data. -func (m *MsgMhfOperateGuildTresureReport) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfOperateGuildTresureReport) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_operate_joint.go b/network/mhfpacket/msg_mhf_operate_joint.go index 28771f291..4ed52425a 100644 --- a/network/mhfpacket/msg_mhf_operate_joint.go +++ b/network/mhfpacket/msg_mhf_operate_joint.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -32,7 +31,7 @@ func (m *MsgMhfOperateJoint) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfOperateJoint) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfOperateJoint) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.AllianceID = bf.ReadUint32() m.GuildID = bf.ReadUint32() @@ -44,6 +43,6 @@ func (m *MsgMhfOperateJoint) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Clien } // Build builds a binary packet from the current data. -func (m *MsgMhfOperateJoint) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfOperateJoint) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_operate_warehouse.go b/network/mhfpacket/msg_mhf_operate_warehouse.go index 5f704040c..fef72e9f4 100644 --- a/network/mhfpacket/msg_mhf_operate_warehouse.go +++ b/network/mhfpacket/msg_mhf_operate_warehouse.go @@ -5,7 +5,6 @@ import ( "erupe-ce/utils/stringsupport" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -24,7 +23,7 @@ func (m *MsgMhfOperateWarehouse) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfOperateWarehouse) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfOperateWarehouse) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.Operation = bf.ReadUint8() m.BoxType = bf.ReadUint8() @@ -38,6 +37,6 @@ func (m *MsgMhfOperateWarehouse) Parse(bf *byteframe.ByteFrame, ctx *clientctx.C } // Build builds a binary packet from the current data. -func (m *MsgMhfOperateWarehouse) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfOperateWarehouse) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_operation_inv_guild.go b/network/mhfpacket/msg_mhf_operation_inv_guild.go index d639334b0..339bf06d1 100644 --- a/network/mhfpacket/msg_mhf_operation_inv_guild.go +++ b/network/mhfpacket/msg_mhf_operation_inv_guild.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -24,7 +23,7 @@ func (m *MsgMhfOperationInvGuild) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfOperationInvGuild) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfOperationInvGuild) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.Operation = bf.ReadUint8() m.ActiveHours = bf.ReadUint8() @@ -35,6 +34,6 @@ func (m *MsgMhfOperationInvGuild) Parse(bf *byteframe.ByteFrame, ctx *clientctx. } // Build builds a binary packet from the current data. -func (m *MsgMhfOperationInvGuild) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfOperationInvGuild) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_opr_member.go b/network/mhfpacket/msg_mhf_opr_member.go index 4b36e452a..3599c3140 100644 --- a/network/mhfpacket/msg_mhf_opr_member.go +++ b/network/mhfpacket/msg_mhf_opr_member.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -22,7 +21,7 @@ func (m *MsgMhfOprMember) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfOprMember) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfOprMember) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.Blacklist = bf.ReadBool() m.Operation = bf.ReadBool() @@ -35,6 +34,6 @@ func (m *MsgMhfOprMember) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientCo } // Build builds a binary packet from the current data. -func (m *MsgMhfOprMember) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfOprMember) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_oprt_mail.go b/network/mhfpacket/msg_mhf_oprt_mail.go index eb510ebe4..3aedc59a5 100644 --- a/network/mhfpacket/msg_mhf_oprt_mail.go +++ b/network/mhfpacket/msg_mhf_oprt_mail.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -35,7 +34,7 @@ func (m *MsgMhfOprtMail) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfOprtMail) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfOprtMail) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.AccIndex = bf.ReadUint8() m.Index = bf.ReadUint8() @@ -49,6 +48,6 @@ func (m *MsgMhfOprtMail) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientCon } // Build builds a binary packet from the current data. -func (m *MsgMhfOprtMail) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfOprtMail) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_payment_achievement.go b/network/mhfpacket/msg_mhf_payment_achievement.go index f806b1836..f6ead2046 100644 --- a/network/mhfpacket/msg_mhf_payment_achievement.go +++ b/network/mhfpacket/msg_mhf_payment_achievement.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgMhfPaymentAchievement) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfPaymentAchievement) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfPaymentAchievement) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgMhfPaymentAchievement) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfPaymentAchievement) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_play_box_gacha.go b/network/mhfpacket/msg_mhf_play_box_gacha.go index 3f3e04fb2..5be15b963 100644 --- a/network/mhfpacket/msg_mhf_play_box_gacha.go +++ b/network/mhfpacket/msg_mhf_play_box_gacha.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -22,7 +21,7 @@ func (m *MsgMhfPlayBoxGacha) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfPlayBoxGacha) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfPlayBoxGacha) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.GachaID = bf.ReadUint32() m.RollType = bf.ReadUint8() @@ -31,6 +30,6 @@ func (m *MsgMhfPlayBoxGacha) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Clien } // Build builds a binary packet from the current data. -func (m *MsgMhfPlayBoxGacha) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfPlayBoxGacha) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_play_free_gacha.go b/network/mhfpacket/msg_mhf_play_free_gacha.go index c86dad3b4..0ed406c18 100644 --- a/network/mhfpacket/msg_mhf_play_free_gacha.go +++ b/network/mhfpacket/msg_mhf_play_free_gacha.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -21,7 +20,7 @@ func (m *MsgMhfPlayFreeGacha) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfPlayFreeGacha) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfPlayFreeGacha) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.GachaID = bf.ReadUint32() m.GachaType = bf.ReadUint8() @@ -29,6 +28,6 @@ func (m *MsgMhfPlayFreeGacha) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Clie } // Build builds a binary packet from the current data. -func (m *MsgMhfPlayFreeGacha) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfPlayFreeGacha) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_play_normal_gacha.go b/network/mhfpacket/msg_mhf_play_normal_gacha.go index 96c825662..feb0df012 100644 --- a/network/mhfpacket/msg_mhf_play_normal_gacha.go +++ b/network/mhfpacket/msg_mhf_play_normal_gacha.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -22,7 +21,7 @@ func (m *MsgMhfPlayNormalGacha) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfPlayNormalGacha) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfPlayNormalGacha) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.GachaID = bf.ReadUint32() m.RollType = bf.ReadUint8() @@ -31,6 +30,6 @@ func (m *MsgMhfPlayNormalGacha) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Cl } // Build builds a binary packet from the current data. -func (m *MsgMhfPlayNormalGacha) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfPlayNormalGacha) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_play_stepup_gacha.go b/network/mhfpacket/msg_mhf_play_stepup_gacha.go index 5442dd812..224c647d9 100644 --- a/network/mhfpacket/msg_mhf_play_stepup_gacha.go +++ b/network/mhfpacket/msg_mhf_play_stepup_gacha.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -22,7 +21,7 @@ func (m *MsgMhfPlayStepupGacha) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfPlayStepupGacha) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfPlayStepupGacha) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.GachaID = bf.ReadUint32() m.RollType = bf.ReadUint8() @@ -31,6 +30,6 @@ func (m *MsgMhfPlayStepupGacha) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Cl } // Build builds a binary packet from the current data. -func (m *MsgMhfPlayStepupGacha) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfPlayStepupGacha) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_post_boost_time.go b/network/mhfpacket/msg_mhf_post_boost_time.go index 05b41d01f..16d4c5c10 100644 --- a/network/mhfpacket/msg_mhf_post_boost_time.go +++ b/network/mhfpacket/msg_mhf_post_boost_time.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -20,13 +19,13 @@ func (m *MsgMhfPostBoostTime) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfPostBoostTime) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfPostBoostTime) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.BoostTime = bf.ReadUint32() return nil } // Build builds a binary packet from the current data. -func (m *MsgMhfPostBoostTime) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfPostBoostTime) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_post_boost_time_limit.go b/network/mhfpacket/msg_mhf_post_boost_time_limit.go index a4e5ad9b3..cbbbcc494 100644 --- a/network/mhfpacket/msg_mhf_post_boost_time_limit.go +++ b/network/mhfpacket/msg_mhf_post_boost_time_limit.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -20,13 +19,13 @@ func (m *MsgMhfPostBoostTimeLimit) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfPostBoostTimeLimit) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfPostBoostTimeLimit) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.Expiration = bf.ReadUint32() return nil } // Build builds a binary packet from the current data. -func (m *MsgMhfPostBoostTimeLimit) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfPostBoostTimeLimit) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_post_boost_time_quest_return.go b/network/mhfpacket/msg_mhf_post_boost_time_quest_return.go index a88c47d9b..0adb61997 100644 --- a/network/mhfpacket/msg_mhf_post_boost_time_quest_return.go +++ b/network/mhfpacket/msg_mhf_post_boost_time_quest_return.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -19,12 +18,12 @@ func (m *MsgMhfPostBoostTimeQuestReturn) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfPostBoostTimeQuestReturn) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfPostBoostTimeQuestReturn) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() return nil } // Build builds a binary packet from the current data. -func (m *MsgMhfPostBoostTimeQuestReturn) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfPostBoostTimeQuestReturn) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_post_cafe_duration_bonus_received.go b/network/mhfpacket/msg_mhf_post_cafe_duration_bonus_received.go index 36b59aac0..ea06a0b7a 100644 --- a/network/mhfpacket/msg_mhf_post_cafe_duration_bonus_received.go +++ b/network/mhfpacket/msg_mhf_post_cafe_duration_bonus_received.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -20,7 +19,7 @@ func (m *MsgMhfPostCafeDurationBonusReceived) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfPostCafeDurationBonusReceived) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfPostCafeDurationBonusReceived) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() ids := int(bf.ReadUint32()) for i := 0; i < ids; i++ { @@ -30,6 +29,6 @@ func (m *MsgMhfPostCafeDurationBonusReceived) Parse(bf *byteframe.ByteFrame, ctx } // Build builds a binary packet from the current data. -func (m *MsgMhfPostCafeDurationBonusReceived) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfPostCafeDurationBonusReceived) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_post_gem_info.go b/network/mhfpacket/msg_mhf_post_gem_info.go index d9310f168..e0939e9fb 100644 --- a/network/mhfpacket/msg_mhf_post_gem_info.go +++ b/network/mhfpacket/msg_mhf_post_gem_info.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -26,7 +25,7 @@ func (m *MsgMhfPostGemInfo) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfPostGemInfo) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfPostGemInfo) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.Op = bf.ReadUint32() m.Unk1 = bf.ReadUint32() @@ -39,6 +38,6 @@ func (m *MsgMhfPostGemInfo) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Client } // Build builds a binary packet from the current data. -func (m *MsgMhfPostGemInfo) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfPostGemInfo) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_post_guild_scout.go b/network/mhfpacket/msg_mhf_post_guild_scout.go index 1ee2bbe79..7ae1dbde0 100644 --- a/network/mhfpacket/msg_mhf_post_guild_scout.go +++ b/network/mhfpacket/msg_mhf_post_guild_scout.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -20,7 +19,7 @@ func (m *MsgMhfPostGuildScout) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfPostGuildScout) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfPostGuildScout) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.CharID = bf.ReadUint32() @@ -28,6 +27,6 @@ func (m *MsgMhfPostGuildScout) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Cli } // Build builds a binary packet from the current data. -func (m *MsgMhfPostGuildScout) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfPostGuildScout) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_post_notice.go b/network/mhfpacket/msg_mhf_post_notice.go index 730a46a02..1b56b9acd 100644 --- a/network/mhfpacket/msg_mhf_post_notice.go +++ b/network/mhfpacket/msg_mhf_post_notice.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -23,7 +22,7 @@ func (m *MsgMhfPostNotice) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfPostNotice) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfPostNotice) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.Unk0 = bf.ReadUint32() m.Unk1 = bf.ReadUint32() @@ -33,6 +32,6 @@ func (m *MsgMhfPostNotice) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientC } // Build builds a binary packet from the current data. -func (m *MsgMhfPostNotice) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfPostNotice) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_post_ryoudama.go b/network/mhfpacket/msg_mhf_post_ryoudama.go index 773b842ae..1555ef9e9 100644 --- a/network/mhfpacket/msg_mhf_post_ryoudama.go +++ b/network/mhfpacket/msg_mhf_post_ryoudama.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgMhfPostRyoudama) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfPostRyoudama) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfPostRyoudama) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgMhfPostRyoudama) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfPostRyoudama) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_post_seibattle.go b/network/mhfpacket/msg_mhf_post_seibattle.go index d5e6df240..8776009f4 100644 --- a/network/mhfpacket/msg_mhf_post_seibattle.go +++ b/network/mhfpacket/msg_mhf_post_seibattle.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -26,7 +25,7 @@ func (m *MsgMhfPostSeibattle) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfPostSeibattle) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfPostSeibattle) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.Unk0 = bf.ReadUint8() m.Unk1 = bf.ReadUint8() @@ -39,6 +38,6 @@ func (m *MsgMhfPostSeibattle) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Clie } // Build builds a binary packet from the current data. -func (m *MsgMhfPostSeibattle) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfPostSeibattle) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_post_tenrouirai.go b/network/mhfpacket/msg_mhf_post_tenrouirai.go index 424a53fd8..a704024f4 100644 --- a/network/mhfpacket/msg_mhf_post_tenrouirai.go +++ b/network/mhfpacket/msg_mhf_post_tenrouirai.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -37,7 +36,7 @@ func (m *MsgMhfPostTenrouirai) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfPostTenrouirai) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfPostTenrouirai) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.Unk0 = bf.ReadUint8() m.Op = bf.ReadUint8() @@ -65,6 +64,6 @@ func (m *MsgMhfPostTenrouirai) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Cli } // Build builds a binary packet from the current data. -func (m *MsgMhfPostTenrouirai) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfPostTenrouirai) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_post_tiny_bin.go b/network/mhfpacket/msg_mhf_post_tiny_bin.go index abd0dd61b..ddf5f31b4 100644 --- a/network/mhfpacket/msg_mhf_post_tiny_bin.go +++ b/network/mhfpacket/msg_mhf_post_tiny_bin.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -24,7 +23,7 @@ func (m *MsgMhfPostTinyBin) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfPostTinyBin) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfPostTinyBin) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.Unk0 = bf.ReadUint8() m.Unk1 = bf.ReadUint8() @@ -35,6 +34,6 @@ func (m *MsgMhfPostTinyBin) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Client } // Build builds a binary packet from the current data. -func (m *MsgMhfPostTinyBin) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfPostTinyBin) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_post_tower_info.go b/network/mhfpacket/msg_mhf_post_tower_info.go index 9352d54eb..ee07582c3 100644 --- a/network/mhfpacket/msg_mhf_post_tower_info.go +++ b/network/mhfpacket/msg_mhf_post_tower_info.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -29,7 +28,7 @@ func (m *MsgMhfPostTowerInfo) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfPostTowerInfo) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfPostTowerInfo) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.InfoType = bf.ReadUint32() m.Unk1 = bf.ReadUint32() @@ -45,6 +44,6 @@ func (m *MsgMhfPostTowerInfo) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Clie } // Build builds a binary packet from the current data. -func (m *MsgMhfPostTowerInfo) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfPostTowerInfo) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_present_box.go b/network/mhfpacket/msg_mhf_present_box.go index 5a7361a9e..b67aacdac 100644 --- a/network/mhfpacket/msg_mhf_present_box.go +++ b/network/mhfpacket/msg_mhf_present_box.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -27,7 +26,7 @@ func (m *MsgMhfPresentBox) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfPresentBox) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfPresentBox) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.Unk0 = bf.ReadUint32() m.Unk1 = bf.ReadUint32() @@ -43,6 +42,6 @@ func (m *MsgMhfPresentBox) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientC } // Build builds a binary packet from the current data. -func (m *MsgMhfPresentBox) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfPresentBox) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_read_beat_level.go b/network/mhfpacket/msg_mhf_read_beat_level.go index 8f8ec6439..4041723dd 100644 --- a/network/mhfpacket/msg_mhf_read_beat_level.go +++ b/network/mhfpacket/msg_mhf_read_beat_level.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -22,7 +21,7 @@ func (m *MsgMhfReadBeatLevel) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfReadBeatLevel) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfReadBeatLevel) Parse(bf *byteframe.ByteFrame) error { // I assume this used to be dynamic, but as of the last JP client version, all of this data is hard-coded literals. m.AckHandle = bf.ReadUint32() m.Unk0 = bf.ReadUint32() // Always 1 @@ -36,6 +35,6 @@ func (m *MsgMhfReadBeatLevel) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Clie } // Build builds a binary packet from the current data. -func (m *MsgMhfReadBeatLevel) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfReadBeatLevel) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_read_beat_level_all_ranking.go b/network/mhfpacket/msg_mhf_read_beat_level_all_ranking.go index 641e9fc6c..affef18e7 100644 --- a/network/mhfpacket/msg_mhf_read_beat_level_all_ranking.go +++ b/network/mhfpacket/msg_mhf_read_beat_level_all_ranking.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -22,7 +21,7 @@ func (m *MsgMhfReadBeatLevelAllRanking) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfReadBeatLevelAllRanking) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfReadBeatLevelAllRanking) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.Unk0 = bf.ReadUint32() m.GuildID = bf.ReadInt32() @@ -31,6 +30,6 @@ func (m *MsgMhfReadBeatLevelAllRanking) Parse(bf *byteframe.ByteFrame, ctx *clie } // Build builds a binary packet from the current data. -func (m *MsgMhfReadBeatLevelAllRanking) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfReadBeatLevelAllRanking) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_read_beat_level_my_ranking.go b/network/mhfpacket/msg_mhf_read_beat_level_my_ranking.go index 4c4f6df6a..d14e4d3a5 100644 --- a/network/mhfpacket/msg_mhf_read_beat_level_my_ranking.go +++ b/network/mhfpacket/msg_mhf_read_beat_level_my_ranking.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -22,7 +21,7 @@ func (m *MsgMhfReadBeatLevelMyRanking) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfReadBeatLevelMyRanking) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfReadBeatLevelMyRanking) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.Unk0 = bf.ReadUint32() m.Unk1 = bf.ReadUint32() @@ -33,6 +32,6 @@ func (m *MsgMhfReadBeatLevelMyRanking) Parse(bf *byteframe.ByteFrame, ctx *clien } // Build builds a binary packet from the current data. -func (m *MsgMhfReadBeatLevelMyRanking) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfReadBeatLevelMyRanking) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_read_guildcard.go b/network/mhfpacket/msg_mhf_read_guildcard.go index 5375496e5..709ea8827 100644 --- a/network/mhfpacket/msg_mhf_read_guildcard.go +++ b/network/mhfpacket/msg_mhf_read_guildcard.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -19,12 +18,12 @@ func (m *MsgMhfReadGuildcard) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfReadGuildcard) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfReadGuildcard) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() return nil } // Build builds a binary packet from the current data. -func (m *MsgMhfReadGuildcard) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfReadGuildcard) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_read_last_week_beat_ranking.go b/network/mhfpacket/msg_mhf_read_last_week_beat_ranking.go index 622ee9e83..c30be9d1f 100644 --- a/network/mhfpacket/msg_mhf_read_last_week_beat_ranking.go +++ b/network/mhfpacket/msg_mhf_read_last_week_beat_ranking.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -21,7 +20,7 @@ func (m *MsgMhfReadLastWeekBeatRanking) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfReadLastWeekBeatRanking) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfReadLastWeekBeatRanking) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.Unk0 = bf.ReadUint32() m.Unk1 = bf.ReadInt32() @@ -29,6 +28,6 @@ func (m *MsgMhfReadLastWeekBeatRanking) Parse(bf *byteframe.ByteFrame, ctx *clie } // Build builds a binary packet from the current data. -func (m *MsgMhfReadLastWeekBeatRanking) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfReadLastWeekBeatRanking) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_read_mail.go b/network/mhfpacket/msg_mhf_read_mail.go index fa5225a17..e3628433f 100644 --- a/network/mhfpacket/msg_mhf_read_mail.go +++ b/network/mhfpacket/msg_mhf_read_mail.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -27,7 +26,7 @@ func (m *MsgMhfReadMail) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfReadMail) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfReadMail) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.AccIndex = bf.ReadUint8() m.Index = bf.ReadUint8() @@ -36,6 +35,6 @@ func (m *MsgMhfReadMail) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientCon } // Build builds a binary packet from the current data. -func (m *MsgMhfReadMail) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfReadMail) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_read_mercenary_m.go b/network/mhfpacket/msg_mhf_read_mercenary_m.go index 63d20ae40..e24d0d718 100644 --- a/network/mhfpacket/msg_mhf_read_mercenary_m.go +++ b/network/mhfpacket/msg_mhf_read_mercenary_m.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -21,7 +20,7 @@ func (m *MsgMhfReadMercenaryM) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfReadMercenaryM) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfReadMercenaryM) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.CharID = bf.ReadUint32() m.MercID = bf.ReadUint32() @@ -29,6 +28,6 @@ func (m *MsgMhfReadMercenaryM) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Cli } // Build builds a binary packet from the current data. -func (m *MsgMhfReadMercenaryM) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfReadMercenaryM) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_read_mercenary_w.go b/network/mhfpacket/msg_mhf_read_mercenary_w.go index 299aff467..c6d97d35c 100644 --- a/network/mhfpacket/msg_mhf_read_mercenary_w.go +++ b/network/mhfpacket/msg_mhf_read_mercenary_w.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -21,7 +20,7 @@ func (m *MsgMhfReadMercenaryW) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfReadMercenaryW) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfReadMercenaryW) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.Op = bf.ReadUint8() m.Unk1 = bf.ReadUint8() // Supposed to be 0 or 1, but always 1 @@ -31,6 +30,6 @@ func (m *MsgMhfReadMercenaryW) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Cli } // Build builds a binary packet from the current data. -func (m *MsgMhfReadMercenaryW) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfReadMercenaryW) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_receive_cafe_duration_bonus.go b/network/mhfpacket/msg_mhf_receive_cafe_duration_bonus.go index 219700300..8d093f6f0 100644 --- a/network/mhfpacket/msg_mhf_receive_cafe_duration_bonus.go +++ b/network/mhfpacket/msg_mhf_receive_cafe_duration_bonus.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -19,12 +18,12 @@ func (m *MsgMhfReceiveCafeDurationBonus) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfReceiveCafeDurationBonus) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfReceiveCafeDurationBonus) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() return nil } // Build builds a binary packet from the current data. -func (m *MsgMhfReceiveCafeDurationBonus) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfReceiveCafeDurationBonus) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_receive_gacha_item.go b/network/mhfpacket/msg_mhf_receive_gacha_item.go index affebe849..af38f0466 100644 --- a/network/mhfpacket/msg_mhf_receive_gacha_item.go +++ b/network/mhfpacket/msg_mhf_receive_gacha_item.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -21,7 +20,7 @@ func (m *MsgMhfReceiveGachaItem) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfReceiveGachaItem) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfReceiveGachaItem) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.Max = bf.ReadUint8() m.Freeze = bf.ReadBool() @@ -29,6 +28,6 @@ func (m *MsgMhfReceiveGachaItem) Parse(bf *byteframe.ByteFrame, ctx *clientctx.C } // Build builds a binary packet from the current data. -func (m *MsgMhfReceiveGachaItem) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfReceiveGachaItem) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_regist_guild_adventure.go b/network/mhfpacket/msg_mhf_regist_guild_adventure.go index 5badb886e..955202765 100644 --- a/network/mhfpacket/msg_mhf_regist_guild_adventure.go +++ b/network/mhfpacket/msg_mhf_regist_guild_adventure.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -20,7 +19,7 @@ func (m *MsgMhfRegistGuildAdventure) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfRegistGuildAdventure) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfRegistGuildAdventure) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.Destination = bf.ReadUint32() _ = bf.ReadUint32() // CharID @@ -28,6 +27,6 @@ func (m *MsgMhfRegistGuildAdventure) Parse(bf *byteframe.ByteFrame, ctx *clientc } // Build builds a binary packet from the current data. -func (m *MsgMhfRegistGuildAdventure) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfRegistGuildAdventure) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_regist_guild_adventure_diva.go b/network/mhfpacket/msg_mhf_regist_guild_adventure_diva.go index d940cbc26..510a95cfd 100644 --- a/network/mhfpacket/msg_mhf_regist_guild_adventure_diva.go +++ b/network/mhfpacket/msg_mhf_regist_guild_adventure_diva.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -21,7 +20,7 @@ func (m *MsgMhfRegistGuildAdventureDiva) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfRegistGuildAdventureDiva) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfRegistGuildAdventureDiva) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.Destination = bf.ReadUint32() m.Charge = bf.ReadUint32() @@ -30,6 +29,6 @@ func (m *MsgMhfRegistGuildAdventureDiva) Parse(bf *byteframe.ByteFrame, ctx *cli } // Build builds a binary packet from the current data. -func (m *MsgMhfRegistGuildAdventureDiva) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfRegistGuildAdventureDiva) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_regist_guild_cooking.go b/network/mhfpacket/msg_mhf_regist_guild_cooking.go index 7123abe9f..5bf382f4e 100644 --- a/network/mhfpacket/msg_mhf_regist_guild_cooking.go +++ b/network/mhfpacket/msg_mhf_regist_guild_cooking.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -22,7 +21,7 @@ func (m *MsgMhfRegistGuildCooking) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfRegistGuildCooking) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfRegistGuildCooking) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.OverwriteID = bf.ReadUint32() m.MealID = bf.ReadUint16() @@ -31,6 +30,6 @@ func (m *MsgMhfRegistGuildCooking) Parse(bf *byteframe.ByteFrame, ctx *clientctx } // Build builds a binary packet from the current data. -func (m *MsgMhfRegistGuildCooking) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfRegistGuildCooking) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_regist_guild_tresure.go b/network/mhfpacket/msg_mhf_regist_guild_tresure.go index 7a86d93ec..82c80ac1f 100644 --- a/network/mhfpacket/msg_mhf_regist_guild_tresure.go +++ b/network/mhfpacket/msg_mhf_regist_guild_tresure.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -20,7 +19,7 @@ func (m *MsgMhfRegistGuildTresure) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfRegistGuildTresure) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfRegistGuildTresure) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.Data = bf.ReadBytes(uint(bf.ReadUint16())) _ = bf.ReadUint32() @@ -28,6 +27,6 @@ func (m *MsgMhfRegistGuildTresure) Parse(bf *byteframe.ByteFrame, ctx *clientctx } // Build builds a binary packet from the current data. -func (m *MsgMhfRegistGuildTresure) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfRegistGuildTresure) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_regist_spabi_time.go b/network/mhfpacket/msg_mhf_regist_spabi_time.go index c58c59624..5a072357f 100644 --- a/network/mhfpacket/msg_mhf_regist_spabi_time.go +++ b/network/mhfpacket/msg_mhf_regist_spabi_time.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgMhfRegistSpabiTime) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfRegistSpabiTime) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfRegistSpabiTime) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgMhfRegistSpabiTime) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfRegistSpabiTime) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_register_event.go b/network/mhfpacket/msg_mhf_register_event.go index 69bf0fbf4..3f6351c5e 100644 --- a/network/mhfpacket/msg_mhf_register_event.go +++ b/network/mhfpacket/msg_mhf_register_event.go @@ -2,7 +2,6 @@ package mhfpacket import ( "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -21,7 +20,7 @@ func (m *MsgMhfRegisterEvent) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfRegisterEvent) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfRegisterEvent) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.Unk0 = bf.ReadUint16() m.WorldID = bf.ReadUint16() @@ -32,6 +31,6 @@ func (m *MsgMhfRegisterEvent) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Clie } // Build builds a binary packet from the current data. -func (m *MsgMhfRegisterEvent) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfRegisterEvent) Build(bf *byteframe.ByteFrame) error { return nil } diff --git a/network/mhfpacket/msg_mhf_release_event.go b/network/mhfpacket/msg_mhf_release_event.go index 193f84bd2..bd3a336f1 100644 --- a/network/mhfpacket/msg_mhf_release_event.go +++ b/network/mhfpacket/msg_mhf_release_event.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -20,7 +19,7 @@ func (m *MsgMhfReleaseEvent) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfReleaseEvent) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfReleaseEvent) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.RaviID = bf.ReadUint32() bf.ReadUint32() // Zeroed @@ -28,6 +27,6 @@ func (m *MsgMhfReleaseEvent) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Clien } // Build builds a binary packet from the current data. -func (m *MsgMhfReleaseEvent) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfReleaseEvent) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_reserve10f.go b/network/mhfpacket/msg_mhf_reserve10f.go index f2cac896d..0362cdc11 100644 --- a/network/mhfpacket/msg_mhf_reserve10f.go +++ b/network/mhfpacket/msg_mhf_reserve10f.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgMhfReserve10F) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfReserve10F) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfReserve10F) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgMhfReserve10F) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfReserve10F) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_reset_achievement.go b/network/mhfpacket/msg_mhf_reset_achievement.go index 3eef7fef6..14681b1c0 100644 --- a/network/mhfpacket/msg_mhf_reset_achievement.go +++ b/network/mhfpacket/msg_mhf_reset_achievement.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgMhfResetAchievement) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfResetAchievement) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfResetAchievement) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgMhfResetAchievement) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfResetAchievement) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_reset_box_gacha_info.go b/network/mhfpacket/msg_mhf_reset_box_gacha_info.go index 9cea6c36f..d0510fd97 100644 --- a/network/mhfpacket/msg_mhf_reset_box_gacha_info.go +++ b/network/mhfpacket/msg_mhf_reset_box_gacha_info.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -20,13 +19,13 @@ func (m *MsgMhfResetBoxGachaInfo) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfResetBoxGachaInfo) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfResetBoxGachaInfo) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.GachaID = bf.ReadUint32() return nil } // Build builds a binary packet from the current data. -func (m *MsgMhfResetBoxGachaInfo) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfResetBoxGachaInfo) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_reset_title.go b/network/mhfpacket/msg_mhf_reset_title.go index 27768a027..1d4193a48 100644 --- a/network/mhfpacket/msg_mhf_reset_title.go +++ b/network/mhfpacket/msg_mhf_reset_title.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgMhfResetTitle) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfResetTitle) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfResetTitle) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgMhfResetTitle) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfResetTitle) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_save_deco_myset.go b/network/mhfpacket/msg_mhf_save_deco_myset.go index 4fc789543..545180343 100644 --- a/network/mhfpacket/msg_mhf_save_deco_myset.go +++ b/network/mhfpacket/msg_mhf_save_deco_myset.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -21,7 +20,7 @@ func (m *MsgMhfSaveDecoMyset) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfSaveDecoMyset) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfSaveDecoMyset) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.DataSize = bf.ReadUint32() m.RawDataPayload = bf.ReadBytes(uint(m.DataSize)) @@ -29,6 +28,6 @@ func (m *MsgMhfSaveDecoMyset) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Clie } // Build builds a binary packet from the current data. -func (m *MsgMhfSaveDecoMyset) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfSaveDecoMyset) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_save_favorite_quest.go b/network/mhfpacket/msg_mhf_save_favorite_quest.go index 19bba81a8..fbdbe837a 100644 --- a/network/mhfpacket/msg_mhf_save_favorite_quest.go +++ b/network/mhfpacket/msg_mhf_save_favorite_quest.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -21,7 +20,7 @@ func (m *MsgMhfSaveFavoriteQuest) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfSaveFavoriteQuest) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfSaveFavoriteQuest) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.DataSize = bf.ReadUint16() m.Data = bf.ReadBytes(uint(m.DataSize)) @@ -29,6 +28,6 @@ func (m *MsgMhfSaveFavoriteQuest) Parse(bf *byteframe.ByteFrame, ctx *clientctx. } // Build builds a binary packet from the current data. -func (m *MsgMhfSaveFavoriteQuest) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfSaveFavoriteQuest) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_save_hunter_navi.go b/network/mhfpacket/msg_mhf_save_hunter_navi.go index 1e1419b47..0bb8569fb 100644 --- a/network/mhfpacket/msg_mhf_save_hunter_navi.go +++ b/network/mhfpacket/msg_mhf_save_hunter_navi.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -22,7 +21,7 @@ func (m *MsgMhfSaveHunterNavi) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfSaveHunterNavi) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfSaveHunterNavi) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.DataSize = bf.ReadUint32() m.IsDataDiff = bf.ReadBool() @@ -31,6 +30,6 @@ func (m *MsgMhfSaveHunterNavi) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Cli } // Build builds a binary packet from the current data. -func (m *MsgMhfSaveHunterNavi) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfSaveHunterNavi) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_save_mercenary.go b/network/mhfpacket/msg_mhf_save_mercenary.go index e9bd12d05..678c68bdb 100644 --- a/network/mhfpacket/msg_mhf_save_mercenary.go +++ b/network/mhfpacket/msg_mhf_save_mercenary.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -22,7 +21,7 @@ func (m *MsgMhfSaveMercenary) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfSaveMercenary) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfSaveMercenary) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() bf.ReadUint32() // lenData m.GCP = bf.ReadUint32() @@ -34,6 +33,6 @@ func (m *MsgMhfSaveMercenary) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Clie } // Build builds a binary packet from the current data. -func (m *MsgMhfSaveMercenary) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfSaveMercenary) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_save_mezfes_data.go b/network/mhfpacket/msg_mhf_save_mezfes_data.go index 979a34dba..c87d853b9 100644 --- a/network/mhfpacket/msg_mhf_save_mezfes_data.go +++ b/network/mhfpacket/msg_mhf_save_mezfes_data.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -21,7 +20,7 @@ func (m *MsgMhfSaveMezfesData) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfSaveMezfesData) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfSaveMezfesData) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.DataSize = bf.ReadUint32() m.RawDataPayload = bf.ReadBytes(uint(m.DataSize)) @@ -29,6 +28,6 @@ func (m *MsgMhfSaveMezfesData) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Cli } // Build builds a binary packet from the current data. -func (m *MsgMhfSaveMezfesData) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfSaveMezfesData) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_save_otomo_airou.go b/network/mhfpacket/msg_mhf_save_otomo_airou.go index 98fbc2f89..104007253 100644 --- a/network/mhfpacket/msg_mhf_save_otomo_airou.go +++ b/network/mhfpacket/msg_mhf_save_otomo_airou.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -21,7 +20,7 @@ func (m *MsgMhfSaveOtomoAirou) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfSaveOtomoAirou) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfSaveOtomoAirou) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.DataSize = bf.ReadUint16() m.RawDataPayload = bf.ReadBytes(uint(m.DataSize)) @@ -29,6 +28,6 @@ func (m *MsgMhfSaveOtomoAirou) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Cli } // Build builds a binary packet from the current data. -func (m *MsgMhfSaveOtomoAirou) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfSaveOtomoAirou) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_save_partner.go b/network/mhfpacket/msg_mhf_save_partner.go index 419377c6e..7650a3fa5 100644 --- a/network/mhfpacket/msg_mhf_save_partner.go +++ b/network/mhfpacket/msg_mhf_save_partner.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -21,7 +20,7 @@ func (m *MsgMhfSavePartner) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfSavePartner) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfSavePartner) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.DataSize = bf.ReadUint16() m.RawDataPayload = bf.ReadBytes(uint(m.DataSize)) @@ -29,6 +28,6 @@ func (m *MsgMhfSavePartner) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Client } // Build builds a binary packet from the current data. -func (m *MsgMhfSavePartner) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfSavePartner) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_save_plate_box.go b/network/mhfpacket/msg_mhf_save_plate_box.go index 201748140..58e1cd89b 100644 --- a/network/mhfpacket/msg_mhf_save_plate_box.go +++ b/network/mhfpacket/msg_mhf_save_plate_box.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -22,7 +21,7 @@ func (m *MsgMhfSavePlateBox) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfSavePlateBox) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfSavePlateBox) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.DataSize = bf.ReadUint32() m.IsDataDiff = bf.ReadBool() @@ -31,6 +30,6 @@ func (m *MsgMhfSavePlateBox) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Clien } // Build builds a binary packet from the current data. -func (m *MsgMhfSavePlateBox) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfSavePlateBox) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_save_plate_data.go b/network/mhfpacket/msg_mhf_save_plate_data.go index dea6ebb78..4c81f41d3 100644 --- a/network/mhfpacket/msg_mhf_save_plate_data.go +++ b/network/mhfpacket/msg_mhf_save_plate_data.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -22,7 +21,7 @@ func (m *MsgMhfSavePlateData) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfSavePlateData) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfSavePlateData) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.DataSize = bf.ReadUint32() m.IsDataDiff = bf.ReadBool() @@ -31,6 +30,6 @@ func (m *MsgMhfSavePlateData) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Clie } // Build builds a binary packet from the current data. -func (m *MsgMhfSavePlateData) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfSavePlateData) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_save_plate_myset.go b/network/mhfpacket/msg_mhf_save_plate_myset.go index bf5f5bffa..ea4c15994 100644 --- a/network/mhfpacket/msg_mhf_save_plate_myset.go +++ b/network/mhfpacket/msg_mhf_save_plate_myset.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -21,7 +20,7 @@ func (m *MsgMhfSavePlateMyset) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfSavePlateMyset) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfSavePlateMyset) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.DataSize = bf.ReadUint32() m.RawDataPayload = bf.ReadBytes(uint(m.DataSize)) @@ -29,6 +28,6 @@ func (m *MsgMhfSavePlateMyset) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Cli } // Build builds a binary packet from the current data. -func (m *MsgMhfSavePlateMyset) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfSavePlateMyset) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_save_rengoku_data.go b/network/mhfpacket/msg_mhf_save_rengoku_data.go index cc3315b43..b529793a3 100644 --- a/network/mhfpacket/msg_mhf_save_rengoku_data.go +++ b/network/mhfpacket/msg_mhf_save_rengoku_data.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -21,7 +20,7 @@ func (m *MsgMhfSaveRengokuData) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfSaveRengokuData) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfSaveRengokuData) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.DataSize = bf.ReadUint32() m.RawDataPayload = bf.ReadBytes(uint(m.DataSize)) @@ -29,6 +28,6 @@ func (m *MsgMhfSaveRengokuData) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Cl } // Build builds a binary packet from the current data. -func (m *MsgMhfSaveRengokuData) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfSaveRengokuData) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_save_scenario_data.go b/network/mhfpacket/msg_mhf_save_scenario_data.go index 99aab462c..063e42733 100644 --- a/network/mhfpacket/msg_mhf_save_scenario_data.go +++ b/network/mhfpacket/msg_mhf_save_scenario_data.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -21,7 +20,7 @@ func (m *MsgMhfSaveScenarioData) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfSaveScenarioData) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfSaveScenarioData) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.DataSize = bf.ReadUint32() m.RawDataPayload = bf.ReadBytes(uint(m.DataSize)) @@ -29,6 +28,6 @@ func (m *MsgMhfSaveScenarioData) Parse(bf *byteframe.ByteFrame, ctx *clientctx.C } // Build builds a binary packet from the current data. -func (m *MsgMhfSaveScenarioData) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfSaveScenarioData) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_savedata.go b/network/mhfpacket/msg_mhf_savedata.go index 873ac9540..2dce6eca2 100644 --- a/network/mhfpacket/msg_mhf_savedata.go +++ b/network/mhfpacket/msg_mhf_savedata.go @@ -5,7 +5,6 @@ import ( _config "erupe-ce/config" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -25,7 +24,7 @@ func (m *MsgMhfSavedata) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfSavedata) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfSavedata) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.AllocMemSize = bf.ReadUint32() m.SaveType = bf.ReadUint8() @@ -42,6 +41,6 @@ func (m *MsgMhfSavedata) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientCon } // Build builds a binary packet from the current data. -func (m *MsgMhfSavedata) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfSavedata) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_send_mail.go b/network/mhfpacket/msg_mhf_send_mail.go index bd393cb73..5f4c70d9d 100644 --- a/network/mhfpacket/msg_mhf_send_mail.go +++ b/network/mhfpacket/msg_mhf_send_mail.go @@ -5,7 +5,6 @@ import ( "erupe-ce/utils/stringsupport" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -27,7 +26,7 @@ func (m *MsgMhfSendMail) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfSendMail) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfSendMail) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.RecipientID = bf.ReadUint32() m.SubjectLength = bf.ReadUint16() @@ -41,6 +40,6 @@ func (m *MsgMhfSendMail) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientCon } // Build builds a binary packet from the current data. -func (m *MsgMhfSendMail) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfSendMail) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_server_command.go b/network/mhfpacket/msg_mhf_server_command.go index c507a3574..d50a0ddbf 100644 --- a/network/mhfpacket/msg_mhf_server_command.go +++ b/network/mhfpacket/msg_mhf_server_command.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgMhfServerCommand) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfServerCommand) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfServerCommand) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgMhfServerCommand) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfServerCommand) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_set_ca_achievement.go b/network/mhfpacket/msg_mhf_set_ca_achievement.go index 9aeb254a4..536037307 100644 --- a/network/mhfpacket/msg_mhf_set_ca_achievement.go +++ b/network/mhfpacket/msg_mhf_set_ca_achievement.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgMhfSetCaAchievement) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfSetCaAchievement) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfSetCaAchievement) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgMhfSetCaAchievement) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfSetCaAchievement) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_set_ca_achievement_hist.go b/network/mhfpacket/msg_mhf_set_ca_achievement_hist.go index 7375a2686..1595d1336 100644 --- a/network/mhfpacket/msg_mhf_set_ca_achievement_hist.go +++ b/network/mhfpacket/msg_mhf_set_ca_achievement_hist.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -27,7 +26,7 @@ func (m *MsgMhfSetCaAchievementHist) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfSetCaAchievementHist) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfSetCaAchievementHist) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.Unk0 = bf.ReadUint16() m.Unk1 = bf.ReadUint8() @@ -41,6 +40,6 @@ func (m *MsgMhfSetCaAchievementHist) Parse(bf *byteframe.ByteFrame, ctx *clientc } // Build builds a binary packet from the current data. -func (m *MsgMhfSetCaAchievementHist) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfSetCaAchievementHist) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_set_daily_mission_personal.go b/network/mhfpacket/msg_mhf_set_daily_mission_personal.go index 2aacdac0e..f31eef8ec 100644 --- a/network/mhfpacket/msg_mhf_set_daily_mission_personal.go +++ b/network/mhfpacket/msg_mhf_set_daily_mission_personal.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgMhfSetDailyMissionPersonal) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfSetDailyMissionPersonal) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfSetDailyMissionPersonal) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgMhfSetDailyMissionPersonal) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfSetDailyMissionPersonal) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_set_enhanced_minidata.go b/network/mhfpacket/msg_mhf_set_enhanced_minidata.go index 372c03a51..f0d13cbb2 100644 --- a/network/mhfpacket/msg_mhf_set_enhanced_minidata.go +++ b/network/mhfpacket/msg_mhf_set_enhanced_minidata.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -21,7 +20,7 @@ func (m *MsgMhfSetEnhancedMinidata) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfSetEnhancedMinidata) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfSetEnhancedMinidata) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.Unk0 = bf.ReadUint16() m.RawDataPayload = bf.ReadBytes(0x400) @@ -29,6 +28,6 @@ func (m *MsgMhfSetEnhancedMinidata) Parse(bf *byteframe.ByteFrame, ctx *clientct } // Build builds a binary packet from the current data. -func (m *MsgMhfSetEnhancedMinidata) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfSetEnhancedMinidata) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_set_guild_manage_right.go b/network/mhfpacket/msg_mhf_set_guild_manage_right.go index 117da18ad..0a61c93e3 100644 --- a/network/mhfpacket/msg_mhf_set_guild_manage_right.go +++ b/network/mhfpacket/msg_mhf_set_guild_manage_right.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -21,7 +20,7 @@ func (m *MsgMhfSetGuildManageRight) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfSetGuildManageRight) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfSetGuildManageRight) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.CharID = bf.ReadUint32() m.Allowed = bf.ReadBool() @@ -30,6 +29,6 @@ func (m *MsgMhfSetGuildManageRight) Parse(bf *byteframe.ByteFrame, ctx *clientct } // Build builds a binary packet from the current data. -func (m *MsgMhfSetGuildManageRight) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfSetGuildManageRight) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_set_guild_mission_target.go b/network/mhfpacket/msg_mhf_set_guild_mission_target.go index 9fa05fa3f..9e4a3cc00 100644 --- a/network/mhfpacket/msg_mhf_set_guild_mission_target.go +++ b/network/mhfpacket/msg_mhf_set_guild_mission_target.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -20,13 +19,13 @@ func (m *MsgMhfSetGuildMissionTarget) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfSetGuildMissionTarget) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfSetGuildMissionTarget) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.MissionID = bf.ReadUint32() return nil } // Build builds a binary packet from the current data. -func (m *MsgMhfSetGuildMissionTarget) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfSetGuildMissionTarget) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_set_kiju.go b/network/mhfpacket/msg_mhf_set_kiju.go index 299809773..c5a292306 100644 --- a/network/mhfpacket/msg_mhf_set_kiju.go +++ b/network/mhfpacket/msg_mhf_set_kiju.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -20,7 +19,7 @@ func (m *MsgMhfSetKiju) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfSetKiju) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfSetKiju) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.Unk1 = bf.ReadUint16() return nil @@ -28,6 +27,6 @@ func (m *MsgMhfSetKiju) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientCont } // Build builds a binary packet from the current data. -func (m *MsgMhfSetKiju) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfSetKiju) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_set_loginwindow.go b/network/mhfpacket/msg_mhf_set_loginwindow.go index e7a824934..93164c056 100644 --- a/network/mhfpacket/msg_mhf_set_loginwindow.go +++ b/network/mhfpacket/msg_mhf_set_loginwindow.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgMhfSetLoginwindow) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfSetLoginwindow) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfSetLoginwindow) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgMhfSetLoginwindow) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfSetLoginwindow) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_set_reject_guild_scout.go b/network/mhfpacket/msg_mhf_set_reject_guild_scout.go index 9fcd48859..93bbb200b 100644 --- a/network/mhfpacket/msg_mhf_set_reject_guild_scout.go +++ b/network/mhfpacket/msg_mhf_set_reject_guild_scout.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -20,7 +19,7 @@ func (m *MsgMhfSetRejectGuildScout) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfSetRejectGuildScout) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfSetRejectGuildScout) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.Reject = bf.ReadBool() @@ -28,6 +27,6 @@ func (m *MsgMhfSetRejectGuildScout) Parse(bf *byteframe.ByteFrame, ctx *clientct } // Build builds a binary packet from the current data. -func (m *MsgMhfSetRejectGuildScout) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfSetRejectGuildScout) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_set_restriction_event.go b/network/mhfpacket/msg_mhf_set_restriction_event.go index b24c6f1a5..d72ddb363 100644 --- a/network/mhfpacket/msg_mhf_set_restriction_event.go +++ b/network/mhfpacket/msg_mhf_set_restriction_event.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -23,7 +22,7 @@ func (m *MsgMhfSetRestrictionEvent) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfSetRestrictionEvent) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfSetRestrictionEvent) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.Unk0 = bf.ReadUint32() m.Unk1 = bf.ReadUint32() @@ -33,6 +32,6 @@ func (m *MsgMhfSetRestrictionEvent) Parse(bf *byteframe.ByteFrame, ctx *clientct } // Build builds a binary packet from the current data. -func (m *MsgMhfSetRestrictionEvent) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfSetRestrictionEvent) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_set_ud_tactics_follower.go b/network/mhfpacket/msg_mhf_set_ud_tactics_follower.go index a10e66ea0..175e398c9 100644 --- a/network/mhfpacket/msg_mhf_set_ud_tactics_follower.go +++ b/network/mhfpacket/msg_mhf_set_ud_tactics_follower.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgMhfSetUdTacticsFollower) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfSetUdTacticsFollower) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfSetUdTacticsFollower) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgMhfSetUdTacticsFollower) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfSetUdTacticsFollower) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_sex_changer.go b/network/mhfpacket/msg_mhf_sex_changer.go index 90602d21b..62c6a7b88 100644 --- a/network/mhfpacket/msg_mhf_sex_changer.go +++ b/network/mhfpacket/msg_mhf_sex_changer.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -23,7 +22,7 @@ func (m *MsgMhfSexChanger) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfSexChanger) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfSexChanger) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.Gender = bf.ReadUint8() m.Unk0 = bf.ReadUint8() @@ -33,6 +32,6 @@ func (m *MsgMhfSexChanger) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientC } // Build builds a binary packet from the current data. -func (m *MsgMhfSexChanger) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfSexChanger) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_shut_client.go b/network/mhfpacket/msg_mhf_shut_client.go index 8d7dc7892..1a7085dfe 100644 --- a/network/mhfpacket/msg_mhf_shut_client.go +++ b/network/mhfpacket/msg_mhf_shut_client.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgMhfShutClient) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfShutClient) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfShutClient) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgMhfShutClient) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfShutClient) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_stampcard_prize.go b/network/mhfpacket/msg_mhf_stampcard_prize.go index d7fcc932a..90f63b3c9 100644 --- a/network/mhfpacket/msg_mhf_stampcard_prize.go +++ b/network/mhfpacket/msg_mhf_stampcard_prize.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgMhfStampcardPrize) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfStampcardPrize) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfStampcardPrize) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgMhfStampcardPrize) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfStampcardPrize) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_stampcard_stamp.go b/network/mhfpacket/msg_mhf_stampcard_stamp.go index 339c5dabb..14604dbb1 100644 --- a/network/mhfpacket/msg_mhf_stampcard_stamp.go +++ b/network/mhfpacket/msg_mhf_stampcard_stamp.go @@ -5,7 +5,6 @@ import ( _config "erupe-ce/config" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -29,7 +28,7 @@ func (m *MsgMhfStampcardStamp) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfStampcardStamp) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfStampcardStamp) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.HR = bf.ReadUint16() if _config.ErupeConfig.ClientID >= _config.G1 { @@ -52,6 +51,6 @@ func (m *MsgMhfStampcardStamp) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Cli } // Build builds a binary packet from the current data. -func (m *MsgMhfStampcardStamp) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfStampcardStamp) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_start_boost_time.go b/network/mhfpacket/msg_mhf_start_boost_time.go index 1b40dbbe6..27aa14a46 100644 --- a/network/mhfpacket/msg_mhf_start_boost_time.go +++ b/network/mhfpacket/msg_mhf_start_boost_time.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -20,13 +19,13 @@ func (m *MsgMhfStartBoostTime) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfStartBoostTime) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfStartBoostTime) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.Unk0 = bf.ReadUint32() return nil } // Build builds a binary packet from the current data. -func (m *MsgMhfStartBoostTime) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfStartBoostTime) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_state_campaign.go b/network/mhfpacket/msg_mhf_state_campaign.go index bcb36001f..0a0b4499a 100644 --- a/network/mhfpacket/msg_mhf_state_campaign.go +++ b/network/mhfpacket/msg_mhf_state_campaign.go @@ -2,7 +2,6 @@ package mhfpacket import ( "errors" - "erupe-ce/network/clientctx" "erupe-ce/network" "erupe-ce/utils/byteframe" @@ -21,7 +20,7 @@ func (m *MsgMhfStateCampaign) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfStateCampaign) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfStateCampaign) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.CampaignID = bf.ReadUint32() m.Unk1 = bf.ReadUint16() @@ -29,6 +28,6 @@ func (m *MsgMhfStateCampaign) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Clie } // Build builds a binary packet from the current data. -func (m *MsgMhfStateCampaign) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfStateCampaign) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_state_festa_g.go b/network/mhfpacket/msg_mhf_state_festa_g.go index de5bfc5cc..e0e1fd617 100644 --- a/network/mhfpacket/msg_mhf_state_festa_g.go +++ b/network/mhfpacket/msg_mhf_state_festa_g.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -21,7 +20,7 @@ func (m *MsgMhfStateFestaG) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfStateFestaG) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfStateFestaG) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.FestaID = bf.ReadUint32() m.GuildID = bf.ReadUint32() @@ -30,6 +29,6 @@ func (m *MsgMhfStateFestaG) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Client } // Build builds a binary packet from the current data. -func (m *MsgMhfStateFestaG) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfStateFestaG) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_state_festa_u.go b/network/mhfpacket/msg_mhf_state_festa_u.go index 883ef5e65..61ae48822 100644 --- a/network/mhfpacket/msg_mhf_state_festa_u.go +++ b/network/mhfpacket/msg_mhf_state_festa_u.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -21,7 +20,7 @@ func (m *MsgMhfStateFestaU) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfStateFestaU) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfStateFestaU) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.FestaID = bf.ReadUint32() m.GuildID = bf.ReadUint32() @@ -30,6 +29,6 @@ func (m *MsgMhfStateFestaU) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Client } // Build builds a binary packet from the current data. -func (m *MsgMhfStateFestaU) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfStateFestaU) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_transfer_item.go b/network/mhfpacket/msg_mhf_transfer_item.go index 25fb5b41d..fbbfe174d 100644 --- a/network/mhfpacket/msg_mhf_transfer_item.go +++ b/network/mhfpacket/msg_mhf_transfer_item.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -25,7 +24,7 @@ func (m *MsgMhfTransferItem) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfTransferItem) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfTransferItem) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.Unk0 = bf.ReadUint32() m.Unk1 = bf.ReadUint8() @@ -35,6 +34,6 @@ func (m *MsgMhfTransferItem) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Clien } // Build builds a binary packet from the current data. -func (m *MsgMhfTransferItem) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfTransferItem) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_transit_message.go b/network/mhfpacket/msg_mhf_transit_message.go index 6de75bd94..835998b36 100644 --- a/network/mhfpacket/msg_mhf_transit_message.go +++ b/network/mhfpacket/msg_mhf_transit_message.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -22,7 +21,7 @@ func (m *MsgMhfTransitMessage) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfTransitMessage) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfTransitMessage) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.Unk0 = bf.ReadUint8() bf.ReadUint8() // Zeroed @@ -32,6 +31,6 @@ func (m *MsgMhfTransitMessage) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Cli } // Build builds a binary packet from the current data. -func (m *MsgMhfTransitMessage) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfTransitMessage) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_unreserve_srg.go b/network/mhfpacket/msg_mhf_unreserve_srg.go index 6fb2d5082..852ff37e6 100644 --- a/network/mhfpacket/msg_mhf_unreserve_srg.go +++ b/network/mhfpacket/msg_mhf_unreserve_srg.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -19,12 +18,12 @@ func (m *MsgMhfUnreserveSrg) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfUnreserveSrg) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfUnreserveSrg) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() return nil } // Build builds a binary packet from the current data. -func (m *MsgMhfUnreserveSrg) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfUnreserveSrg) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_update_beat_level.go b/network/mhfpacket/msg_mhf_update_beat_level.go index 5e2c67171..a0994e700 100644 --- a/network/mhfpacket/msg_mhf_update_beat_level.go +++ b/network/mhfpacket/msg_mhf_update_beat_level.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -23,7 +22,7 @@ func (m *MsgMhfUpdateBeatLevel) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfUpdateBeatLevel) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfUpdateBeatLevel) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.Unk1 = bf.ReadUint32() m.Unk2 = bf.ReadUint32() @@ -37,6 +36,6 @@ func (m *MsgMhfUpdateBeatLevel) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Cl } // Build builds a binary packet from the current data. -func (m *MsgMhfUpdateBeatLevel) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfUpdateBeatLevel) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_update_cafepoint.go b/network/mhfpacket/msg_mhf_update_cafepoint.go index 0a344b95c..fa6c4f172 100644 --- a/network/mhfpacket/msg_mhf_update_cafepoint.go +++ b/network/mhfpacket/msg_mhf_update_cafepoint.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -19,7 +18,7 @@ func (m *MsgMhfUpdateCafepoint) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfUpdateCafepoint) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfUpdateCafepoint) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() bf.ReadUint16() // Zeroed bf.ReadUint16() // Zeroed @@ -27,6 +26,6 @@ func (m *MsgMhfUpdateCafepoint) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Cl } // Build builds a binary packet from the current data. -func (m *MsgMhfUpdateCafepoint) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfUpdateCafepoint) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_update_equip_skin_hist.go b/network/mhfpacket/msg_mhf_update_equip_skin_hist.go index a06a55308..8d417295a 100644 --- a/network/mhfpacket/msg_mhf_update_equip_skin_hist.go +++ b/network/mhfpacket/msg_mhf_update_equip_skin_hist.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -21,7 +20,7 @@ func (m *MsgMhfUpdateEquipSkinHist) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfUpdateEquipSkinHist) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfUpdateEquipSkinHist) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.MogType = bf.ReadUint8() m.ArmourID = bf.ReadUint16() @@ -29,6 +28,6 @@ func (m *MsgMhfUpdateEquipSkinHist) Parse(bf *byteframe.ByteFrame, ctx *clientct } // Build builds a binary packet from the current data. -func (m *MsgMhfUpdateEquipSkinHist) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfUpdateEquipSkinHist) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_update_etc_point.go b/network/mhfpacket/msg_mhf_update_etc_point.go index 108bff5af..9a670c915 100644 --- a/network/mhfpacket/msg_mhf_update_etc_point.go +++ b/network/mhfpacket/msg_mhf_update_etc_point.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -21,7 +20,7 @@ func (m *MsgMhfUpdateEtcPoint) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfUpdateEtcPoint) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfUpdateEtcPoint) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.PointType = bf.ReadUint8() m.Delta = bf.ReadInt16() @@ -29,6 +28,6 @@ func (m *MsgMhfUpdateEtcPoint) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Cli } // Build builds a binary packet from the current data. -func (m *MsgMhfUpdateEtcPoint) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfUpdateEtcPoint) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_update_force_guild_rank.go b/network/mhfpacket/msg_mhf_update_force_guild_rank.go index 50e982af5..6749d2015 100644 --- a/network/mhfpacket/msg_mhf_update_force_guild_rank.go +++ b/network/mhfpacket/msg_mhf_update_force_guild_rank.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgMhfUpdateForceGuildRank) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfUpdateForceGuildRank) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfUpdateForceGuildRank) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgMhfUpdateForceGuildRank) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfUpdateForceGuildRank) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_update_guacot.go b/network/mhfpacket/msg_mhf_update_guacot.go index 875350061..463bddde2 100644 --- a/network/mhfpacket/msg_mhf_update_guacot.go +++ b/network/mhfpacket/msg_mhf_update_guacot.go @@ -3,7 +3,6 @@ package mhfpacket import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -27,7 +26,7 @@ func (m *MsgMhfUpdateGuacot) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfUpdateGuacot) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfUpdateGuacot) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.EntryCount = bf.ReadUint16() bf.ReadUint16() // Zeroed @@ -47,6 +46,6 @@ func (m *MsgMhfUpdateGuacot) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Clien } // Build builds a binary packet from the current data. -func (m *MsgMhfUpdateGuacot) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfUpdateGuacot) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_update_guild.go b/network/mhfpacket/msg_mhf_update_guild.go index f47e98d69..3a9322f18 100644 --- a/network/mhfpacket/msg_mhf_update_guild.go +++ b/network/mhfpacket/msg_mhf_update_guild.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgMhfUpdateGuild) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfUpdateGuild) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfUpdateGuild) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgMhfUpdateGuild) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfUpdateGuild) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_update_guild_icon.go b/network/mhfpacket/msg_mhf_update_guild_icon.go index 278782f35..9fdb0c0af 100644 --- a/network/mhfpacket/msg_mhf_update_guild_icon.go +++ b/network/mhfpacket/msg_mhf_update_guild_icon.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -34,7 +33,7 @@ func (m *MsgMhfUpdateGuildIcon) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfUpdateGuildIcon) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfUpdateGuildIcon) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.GuildID = bf.ReadUint32() partCount := int(bf.ReadUint16()) @@ -61,6 +60,6 @@ func (m *MsgMhfUpdateGuildIcon) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Cl } // Build builds a binary packet from the current data. -func (m *MsgMhfUpdateGuildIcon) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfUpdateGuildIcon) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_update_guild_item.go b/network/mhfpacket/msg_mhf_update_guild_item.go index c5ec88155..20abc984c 100644 --- a/network/mhfpacket/msg_mhf_update_guild_item.go +++ b/network/mhfpacket/msg_mhf_update_guild_item.go @@ -5,7 +5,6 @@ import ( "erupe-ce/utils/mhfitem" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -22,7 +21,7 @@ func (m *MsgMhfUpdateGuildItem) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfUpdateGuildItem) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfUpdateGuildItem) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.GuildID = bf.ReadUint32() changes := int(bf.ReadUint16()) @@ -35,6 +34,6 @@ func (m *MsgMhfUpdateGuildItem) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Cl } // Build builds a binary packet from the current data. -func (m *MsgMhfUpdateGuildItem) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfUpdateGuildItem) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_update_guild_message_board.go b/network/mhfpacket/msg_mhf_update_guild_message_board.go index 0aef8330b..52a4f0572 100644 --- a/network/mhfpacket/msg_mhf_update_guild_message_board.go +++ b/network/mhfpacket/msg_mhf_update_guild_message_board.go @@ -5,7 +5,6 @@ import ( "erupe-ce/utils/stringsupport" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -29,7 +28,7 @@ func (m *MsgMhfUpdateGuildMessageBoard) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfUpdateGuildMessageBoard) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfUpdateGuildMessageBoard) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.MessageOp = bf.ReadUint32() switch m.MessageOp { @@ -62,6 +61,6 @@ func (m *MsgMhfUpdateGuildMessageBoard) Parse(bf *byteframe.ByteFrame, ctx *clie } // Build builds a binary packet from the current data. -func (m *MsgMhfUpdateGuildMessageBoard) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfUpdateGuildMessageBoard) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_update_guildcard.go b/network/mhfpacket/msg_mhf_update_guildcard.go index d1f660edb..98a941c17 100644 --- a/network/mhfpacket/msg_mhf_update_guildcard.go +++ b/network/mhfpacket/msg_mhf_update_guildcard.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgMhfUpdateGuildcard) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfUpdateGuildcard) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfUpdateGuildcard) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgMhfUpdateGuildcard) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfUpdateGuildcard) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_update_house.go b/network/mhfpacket/msg_mhf_update_house.go index 456f6cf7b..db17b100b 100644 --- a/network/mhfpacket/msg_mhf_update_house.go +++ b/network/mhfpacket/msg_mhf_update_house.go @@ -5,7 +5,6 @@ import ( "erupe-ce/utils/stringsupport" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -23,7 +22,7 @@ func (m *MsgMhfUpdateHouse) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfUpdateHouse) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfUpdateHouse) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.State = bf.ReadUint8() m.Unk1 = bf.ReadUint8() @@ -35,6 +34,6 @@ func (m *MsgMhfUpdateHouse) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Client } // Build builds a binary packet from the current data. -func (m *MsgMhfUpdateHouse) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfUpdateHouse) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_update_interior.go b/network/mhfpacket/msg_mhf_update_interior.go index e787dd01a..fa36b1b7c 100644 --- a/network/mhfpacket/msg_mhf_update_interior.go +++ b/network/mhfpacket/msg_mhf_update_interior.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -20,13 +19,13 @@ func (m *MsgMhfUpdateInterior) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfUpdateInterior) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfUpdateInterior) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.InteriorData = bf.ReadBytes(20) return nil } // Build builds a binary packet from the current data. -func (m *MsgMhfUpdateInterior) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfUpdateInterior) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_update_myhouse_info.go b/network/mhfpacket/msg_mhf_update_myhouse_info.go index 1d12d791e..ccbb4df59 100644 --- a/network/mhfpacket/msg_mhf_update_myhouse_info.go +++ b/network/mhfpacket/msg_mhf_update_myhouse_info.go @@ -5,7 +5,6 @@ import ( _config "erupe-ce/config" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -21,7 +20,7 @@ func (m *MsgMhfUpdateMyhouseInfo) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfUpdateMyhouseInfo) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfUpdateMyhouseInfo) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() if _config.ErupeConfig.ClientID >= _config.G10 { m.Data = bf.ReadBytes(362) @@ -37,6 +36,6 @@ func (m *MsgMhfUpdateMyhouseInfo) Parse(bf *byteframe.ByteFrame, ctx *clientctx. } // Build builds a binary packet from the current data. -func (m *MsgMhfUpdateMyhouseInfo) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfUpdateMyhouseInfo) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_update_union_item.go b/network/mhfpacket/msg_mhf_update_union_item.go index fc256ce3f..255619a86 100644 --- a/network/mhfpacket/msg_mhf_update_union_item.go +++ b/network/mhfpacket/msg_mhf_update_union_item.go @@ -5,7 +5,6 @@ import ( "erupe-ce/utils/mhfitem" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -21,7 +20,7 @@ func (m *MsgMhfUpdateUnionItem) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfUpdateUnionItem) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfUpdateUnionItem) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() changes := int(bf.ReadUint16()) bf.ReadUint8() // Zeroed @@ -33,6 +32,6 @@ func (m *MsgMhfUpdateUnionItem) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Cl } // Build builds a binary packet from the current data. -func (m *MsgMhfUpdateUnionItem) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfUpdateUnionItem) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_update_use_trend_weapon_log.go b/network/mhfpacket/msg_mhf_update_use_trend_weapon_log.go index 02e378a2c..8f190bfa0 100644 --- a/network/mhfpacket/msg_mhf_update_use_trend_weapon_log.go +++ b/network/mhfpacket/msg_mhf_update_use_trend_weapon_log.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -21,7 +20,7 @@ func (m *MsgMhfUpdateUseTrendWeaponLog) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfUpdateUseTrendWeaponLog) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfUpdateUseTrendWeaponLog) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.WeaponType = bf.ReadUint8() m.WeaponID = bf.ReadUint16() @@ -29,6 +28,6 @@ func (m *MsgMhfUpdateUseTrendWeaponLog) Parse(bf *byteframe.ByteFrame, ctx *clie } // Build builds a binary packet from the current data. -func (m *MsgMhfUpdateUseTrendWeaponLog) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfUpdateUseTrendWeaponLog) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_update_warehouse.go b/network/mhfpacket/msg_mhf_update_warehouse.go index 8fc025f29..37d554278 100644 --- a/network/mhfpacket/msg_mhf_update_warehouse.go +++ b/network/mhfpacket/msg_mhf_update_warehouse.go @@ -3,7 +3,6 @@ package mhfpacket import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" "erupe-ce/utils/mhfitem" ) @@ -23,7 +22,7 @@ func (m *MsgMhfUpdateWarehouse) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfUpdateWarehouse) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfUpdateWarehouse) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.BoxType = bf.ReadUint8() m.BoxIndex = bf.ReadUint8() @@ -42,6 +41,6 @@ func (m *MsgMhfUpdateWarehouse) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Cl } // Build builds a binary packet from the current data. -func (m *MsgMhfUpdateWarehouse) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfUpdateWarehouse) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_use_gacha_point.go b/network/mhfpacket/msg_mhf_use_gacha_point.go index 267f65846..2447b3d8b 100644 --- a/network/mhfpacket/msg_mhf_use_gacha_point.go +++ b/network/mhfpacket/msg_mhf_use_gacha_point.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -23,7 +22,7 @@ func (m *MsgMhfUseGachaPoint) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfUseGachaPoint) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfUseGachaPoint) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.Unk0 = bf.ReadUint8() m.Unk1 = bf.ReadUint8() @@ -33,6 +32,6 @@ func (m *MsgMhfUseGachaPoint) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Clie } // Build builds a binary packet from the current data. -func (m *MsgMhfUseGachaPoint) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfUseGachaPoint) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_use_keep_login_boost.go b/network/mhfpacket/msg_mhf_use_keep_login_boost.go index f85cdd20a..dc33c383f 100644 --- a/network/mhfpacket/msg_mhf_use_keep_login_boost.go +++ b/network/mhfpacket/msg_mhf_use_keep_login_boost.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -20,13 +19,13 @@ func (m *MsgMhfUseKeepLoginBoost) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfUseKeepLoginBoost) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfUseKeepLoginBoost) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.BoostWeekUsed = bf.ReadUint8() return nil } // Build builds a binary packet from the current data. -func (m *MsgMhfUseKeepLoginBoost) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfUseKeepLoginBoost) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_use_reward_song.go b/network/mhfpacket/msg_mhf_use_reward_song.go index 397c2279d..eef5cd148 100644 --- a/network/mhfpacket/msg_mhf_use_reward_song.go +++ b/network/mhfpacket/msg_mhf_use_reward_song.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -19,12 +18,12 @@ func (m *MsgMhfUseRewardSong) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfUseRewardSong) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfUseRewardSong) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() return nil } // Build builds a binary packet from the current data. -func (m *MsgMhfUseRewardSong) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfUseRewardSong) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_use_ud_shop_coin.go b/network/mhfpacket/msg_mhf_use_ud_shop_coin.go index a41d21251..9f50711ce 100644 --- a/network/mhfpacket/msg_mhf_use_ud_shop_coin.go +++ b/network/mhfpacket/msg_mhf_use_ud_shop_coin.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgMhfUseUdShopCoin) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfUseUdShopCoin) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfUseUdShopCoin) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgMhfUseUdShopCoin) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfUseUdShopCoin) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_mhf_vote_festa.go b/network/mhfpacket/msg_mhf_vote_festa.go index eb3a5cf36..51c700fbb 100644 --- a/network/mhfpacket/msg_mhf_vote_festa.go +++ b/network/mhfpacket/msg_mhf_vote_festa.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -22,7 +21,7 @@ func (m *MsgMhfVoteFesta) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgMhfVoteFesta) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfVoteFesta) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.FestaID = bf.ReadUint32() m.GuildID = bf.ReadUint32() @@ -31,6 +30,6 @@ func (m *MsgMhfVoteFesta) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientCo } // Build builds a binary packet from the current data. -func (m *MsgMhfVoteFesta) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgMhfVoteFesta) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_ack.go b/network/mhfpacket/msg_sys_ack.go index 9d1ac553b..69d7e08b2 100644 --- a/network/mhfpacket/msg_sys_ack.go +++ b/network/mhfpacket/msg_sys_ack.go @@ -2,7 +2,6 @@ package mhfpacket import ( "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -20,7 +19,7 @@ func (m *MsgSysAck) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysAck) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysAck) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.IsBufferResponse = bf.ReadBool() m.ErrorCode = bf.ReadUint8() @@ -43,7 +42,7 @@ func (m *MsgSysAck) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) } // Build builds a binary packet from the current data. -func (m *MsgSysAck) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysAck) Build(bf *byteframe.ByteFrame) error { bf.WriteUint32(m.AckHandle) bf.WriteBool(m.IsBufferResponse) bf.WriteUint8(m.ErrorCode) diff --git a/network/mhfpacket/msg_sys_acquire_semaphore.go b/network/mhfpacket/msg_sys_acquire_semaphore.go index e77baeeee..497c03bae 100644 --- a/network/mhfpacket/msg_sys_acquire_semaphore.go +++ b/network/mhfpacket/msg_sys_acquire_semaphore.go @@ -5,7 +5,6 @@ import ( "erupe-ce/utils/bfutil" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -21,7 +20,7 @@ func (m *MsgSysAcquireSemaphore) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysAcquireSemaphore) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysAcquireSemaphore) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() SemaphoreIDLength := bf.ReadUint8() m.SemaphoreID = string(bfutil.UpToNull(bf.ReadBytes(uint(SemaphoreIDLength)))) @@ -29,6 +28,6 @@ func (m *MsgSysAcquireSemaphore) Parse(bf *byteframe.ByteFrame, ctx *clientctx.C } // Build builds a binary packet from the current data. -func (m *MsgSysAcquireSemaphore) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysAcquireSemaphore) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_add_object.go b/network/mhfpacket/msg_sys_add_object.go index f797d8210..8bd924993 100644 --- a/network/mhfpacket/msg_sys_add_object.go +++ b/network/mhfpacket/msg_sys_add_object.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgSysAddObject) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysAddObject) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysAddObject) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgSysAddObject) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysAddObject) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_auth_data.go b/network/mhfpacket/msg_sys_auth_data.go index 96768aeaf..2a758aa5d 100644 --- a/network/mhfpacket/msg_sys_auth_data.go +++ b/network/mhfpacket/msg_sys_auth_data.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgSysAuthData) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysAuthData) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysAuthData) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgSysAuthData) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysAuthData) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_auth_query.go b/network/mhfpacket/msg_sys_auth_query.go index f56843ddc..df9d8eeca 100644 --- a/network/mhfpacket/msg_sys_auth_query.go +++ b/network/mhfpacket/msg_sys_auth_query.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgSysAuthQuery) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysAuthQuery) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysAuthQuery) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgSysAuthQuery) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysAuthQuery) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_auth_terminal.go b/network/mhfpacket/msg_sys_auth_terminal.go index c87b84a8a..37142c2e4 100644 --- a/network/mhfpacket/msg_sys_auth_terminal.go +++ b/network/mhfpacket/msg_sys_auth_terminal.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgSysAuthTerminal) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysAuthTerminal) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysAuthTerminal) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgSysAuthTerminal) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysAuthTerminal) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_back_stage.go b/network/mhfpacket/msg_sys_back_stage.go index 21b0178fa..be04adbd4 100644 --- a/network/mhfpacket/msg_sys_back_stage.go +++ b/network/mhfpacket/msg_sys_back_stage.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -19,12 +18,12 @@ func (m *MsgSysBackStage) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysBackStage) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysBackStage) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() return nil } // Build builds a binary packet from the current data. -func (m *MsgSysBackStage) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysBackStage) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_cast_binary.go b/network/mhfpacket/msg_sys_cast_binary.go index 93b2e1575..db3d3d495 100644 --- a/network/mhfpacket/msg_sys_cast_binary.go +++ b/network/mhfpacket/msg_sys_cast_binary.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -22,7 +21,7 @@ func (m *MsgSysCastBinary) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysCastBinary) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysCastBinary) Parse(bf *byteframe.ByteFrame) error { m.Unk = bf.ReadUint32() m.BroadcastType = bf.ReadUint8() m.MessageType = bf.ReadUint8() @@ -32,6 +31,6 @@ func (m *MsgSysCastBinary) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientC } // Build builds a binary packet from the current data. -func (m *MsgSysCastBinary) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysCastBinary) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_casted_binary.go b/network/mhfpacket/msg_sys_casted_binary.go index 9fd0997c3..8cda8a109 100644 --- a/network/mhfpacket/msg_sys_casted_binary.go +++ b/network/mhfpacket/msg_sys_casted_binary.go @@ -2,7 +2,6 @@ package mhfpacket import ( "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -20,7 +19,7 @@ func (m *MsgSysCastedBinary) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysCastedBinary) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysCastedBinary) Parse(bf *byteframe.ByteFrame) error { m.CharID = bf.ReadUint32() m.BroadcastType = bf.ReadUint8() m.MessageType = bf.ReadUint8() @@ -30,7 +29,7 @@ func (m *MsgSysCastedBinary) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Clien } // Build builds a binary packet from the current data. -func (m *MsgSysCastedBinary) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysCastedBinary) Build(bf *byteframe.ByteFrame) error { bf.WriteUint32(m.CharID) bf.WriteUint8(m.BroadcastType) bf.WriteUint8(m.MessageType) diff --git a/network/mhfpacket/msg_sys_check_semaphore.go b/network/mhfpacket/msg_sys_check_semaphore.go index 4f3f6c6d7..7d8420f8f 100644 --- a/network/mhfpacket/msg_sys_check_semaphore.go +++ b/network/mhfpacket/msg_sys_check_semaphore.go @@ -5,7 +5,6 @@ import ( "erupe-ce/utils/bfutil" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -21,7 +20,7 @@ func (m *MsgSysCheckSemaphore) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysCheckSemaphore) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysCheckSemaphore) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() semaphoreIDLength := bf.ReadUint8() m.SemaphoreID = string(bfutil.UpToNull(bf.ReadBytes(uint(semaphoreIDLength)))) @@ -29,6 +28,6 @@ func (m *MsgSysCheckSemaphore) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Cli } // Build builds a binary packet from the current data. -func (m *MsgSysCheckSemaphore) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysCheckSemaphore) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_cleanup_object.go b/network/mhfpacket/msg_sys_cleanup_object.go index 487e212fa..f859c0989 100644 --- a/network/mhfpacket/msg_sys_cleanup_object.go +++ b/network/mhfpacket/msg_sys_cleanup_object.go @@ -2,7 +2,6 @@ package mhfpacket import ( "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -15,13 +14,13 @@ func (m *MsgSysCleanupObject) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysCleanupObject) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysCleanupObject) Parse(bf *byteframe.ByteFrame) error { // This packet has no data. return nil } // Build builds a binary packet from the current data. -func (m *MsgSysCleanupObject) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysCleanupObject) Build(bf *byteframe.ByteFrame) error { // This packet has no data. return nil } diff --git a/network/mhfpacket/msg_sys_close_mutex.go b/network/mhfpacket/msg_sys_close_mutex.go index 90e2d517c..1724ce9f5 100644 --- a/network/mhfpacket/msg_sys_close_mutex.go +++ b/network/mhfpacket/msg_sys_close_mutex.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgSysCloseMutex) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysCloseMutex) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysCloseMutex) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgSysCloseMutex) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysCloseMutex) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_collect_binary.go b/network/mhfpacket/msg_sys_collect_binary.go index a857e1afd..726a6e931 100644 --- a/network/mhfpacket/msg_sys_collect_binary.go +++ b/network/mhfpacket/msg_sys_collect_binary.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgSysCollectBinary) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysCollectBinary) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysCollectBinary) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgSysCollectBinary) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysCollectBinary) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_create_acquire_semaphore.go b/network/mhfpacket/msg_sys_create_acquire_semaphore.go index c379f788c..a3f7cce3d 100644 --- a/network/mhfpacket/msg_sys_create_acquire_semaphore.go +++ b/network/mhfpacket/msg_sys_create_acquire_semaphore.go @@ -4,7 +4,6 @@ import ( "errors" _config "erupe-ce/config" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -22,7 +21,7 @@ func (m *MsgSysCreateAcquireSemaphore) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysCreateAcquireSemaphore) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysCreateAcquireSemaphore) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.Unk0 = bf.ReadUint16() if _config.ErupeConfig.ClientID >= _config.S7 { // Assuming this was added with Ravi? @@ -34,6 +33,6 @@ func (m *MsgSysCreateAcquireSemaphore) Parse(bf *byteframe.ByteFrame, ctx *clien } // Build builds a binary packet from the current data. -func (m *MsgSysCreateAcquireSemaphore) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysCreateAcquireSemaphore) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_create_mutex.go b/network/mhfpacket/msg_sys_create_mutex.go index 4f5c8dd11..2217b5c7c 100644 --- a/network/mhfpacket/msg_sys_create_mutex.go +++ b/network/mhfpacket/msg_sys_create_mutex.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgSysCreateMutex) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysCreateMutex) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysCreateMutex) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgSysCreateMutex) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysCreateMutex) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_create_object.go b/network/mhfpacket/msg_sys_create_object.go index 80545a70f..7896ebc23 100644 --- a/network/mhfpacket/msg_sys_create_object.go +++ b/network/mhfpacket/msg_sys_create_object.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -21,7 +20,7 @@ func (m *MsgSysCreateObject) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysCreateObject) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysCreateObject) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.X = bf.ReadFloat32() m.Y = bf.ReadFloat32() @@ -31,6 +30,6 @@ func (m *MsgSysCreateObject) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Clien } // Build builds a binary packet from the current data. -func (m *MsgSysCreateObject) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysCreateObject) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_create_open_mutex.go b/network/mhfpacket/msg_sys_create_open_mutex.go index d35ba1573..9989c7e82 100644 --- a/network/mhfpacket/msg_sys_create_open_mutex.go +++ b/network/mhfpacket/msg_sys_create_open_mutex.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgSysCreateOpenMutex) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysCreateOpenMutex) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysCreateOpenMutex) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgSysCreateOpenMutex) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysCreateOpenMutex) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_create_semaphore.go b/network/mhfpacket/msg_sys_create_semaphore.go index 62da94755..74fc58b12 100644 --- a/network/mhfpacket/msg_sys_create_semaphore.go +++ b/network/mhfpacket/msg_sys_create_semaphore.go @@ -5,7 +5,6 @@ import ( _config "erupe-ce/config" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -23,7 +22,7 @@ func (m *MsgSysCreateSemaphore) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysCreateSemaphore) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysCreateSemaphore) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.Unk0 = bf.ReadUint16() if _config.ErupeConfig.ClientID >= _config.S7 { // Assuming this was added with Ravi? @@ -35,6 +34,6 @@ func (m *MsgSysCreateSemaphore) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Cl } // Build builds a binary packet from the current data. -func (m *MsgSysCreateSemaphore) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysCreateSemaphore) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_create_stage.go b/network/mhfpacket/msg_sys_create_stage.go index 80fbbe6bd..a1c68ecd2 100644 --- a/network/mhfpacket/msg_sys_create_stage.go +++ b/network/mhfpacket/msg_sys_create_stage.go @@ -3,7 +3,6 @@ package mhfpacket import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -21,7 +20,7 @@ func (m *MsgSysCreateStage) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysCreateStage) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysCreateStage) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.Unk0 = bf.ReadUint8() m.PlayerCount = bf.ReadUint8() @@ -31,6 +30,6 @@ func (m *MsgSysCreateStage) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Client } // Build builds a binary packet from the current data. -func (m *MsgSysCreateStage) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysCreateStage) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_del_object.go b/network/mhfpacket/msg_sys_del_object.go index 3d549eed0..6a3d2dea7 100644 --- a/network/mhfpacket/msg_sys_del_object.go +++ b/network/mhfpacket/msg_sys_del_object.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgSysDelObject) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysDelObject) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysDelObject) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgSysDelObject) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysDelObject) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_delete_mutex.go b/network/mhfpacket/msg_sys_delete_mutex.go index 0df07f402..3ab65cea4 100644 --- a/network/mhfpacket/msg_sys_delete_mutex.go +++ b/network/mhfpacket/msg_sys_delete_mutex.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgSysDeleteMutex) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysDeleteMutex) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysDeleteMutex) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgSysDeleteMutex) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysDeleteMutex) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_delete_object.go b/network/mhfpacket/msg_sys_delete_object.go index 11f8e43be..1156f9bd8 100644 --- a/network/mhfpacket/msg_sys_delete_object.go +++ b/network/mhfpacket/msg_sys_delete_object.go @@ -2,7 +2,6 @@ package mhfpacket import ( "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,13 +16,13 @@ func (m *MsgSysDeleteObject) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysDeleteObject) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysDeleteObject) Parse(bf *byteframe.ByteFrame) error { m.ObjID = bf.ReadUint32() return nil } // Build builds a binary packet from the current data. -func (m *MsgSysDeleteObject) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysDeleteObject) Build(bf *byteframe.ByteFrame) error { bf.WriteUint32(m.ObjID) return nil } diff --git a/network/mhfpacket/msg_sys_delete_semaphore.go b/network/mhfpacket/msg_sys_delete_semaphore.go index 6cea8748a..38928cc92 100644 --- a/network/mhfpacket/msg_sys_delete_semaphore.go +++ b/network/mhfpacket/msg_sys_delete_semaphore.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -19,12 +18,12 @@ func (m *MsgSysDeleteSemaphore) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysDeleteSemaphore) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysDeleteSemaphore) Parse(bf *byteframe.ByteFrame) error { m.SemaphoreID = bf.ReadUint32() return nil } // Build builds a binary packet from the current data. -func (m *MsgSysDeleteSemaphore) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysDeleteSemaphore) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_delete_user.go b/network/mhfpacket/msg_sys_delete_user.go index 06661fdbd..4965ee3ef 100644 --- a/network/mhfpacket/msg_sys_delete_user.go +++ b/network/mhfpacket/msg_sys_delete_user.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -19,12 +18,12 @@ func (m *MsgSysDeleteUser) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysDeleteUser) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysDeleteUser) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgSysDeleteUser) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysDeleteUser) Build(bf *byteframe.ByteFrame) error { bf.WriteUint32(m.CharID) return nil diff --git a/network/mhfpacket/msg_sys_disp_object.go b/network/mhfpacket/msg_sys_disp_object.go index 9259efc1b..1f2d766c0 100644 --- a/network/mhfpacket/msg_sys_disp_object.go +++ b/network/mhfpacket/msg_sys_disp_object.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgSysDispObject) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysDispObject) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysDispObject) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgSysDispObject) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysDispObject) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_duplicate_object.go b/network/mhfpacket/msg_sys_duplicate_object.go index a818ec816..269654925 100644 --- a/network/mhfpacket/msg_sys_duplicate_object.go +++ b/network/mhfpacket/msg_sys_duplicate_object.go @@ -2,7 +2,6 @@ package mhfpacket import ( "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -20,7 +19,7 @@ func (m *MsgSysDuplicateObject) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysDuplicateObject) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysDuplicateObject) Parse(bf *byteframe.ByteFrame) error { m.ObjID = bf.ReadUint32() m.X = bf.ReadFloat32() m.Y = bf.ReadFloat32() @@ -31,7 +30,7 @@ func (m *MsgSysDuplicateObject) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Cl } // Build builds a binary packet from the current data. -func (m *MsgSysDuplicateObject) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysDuplicateObject) Build(bf *byteframe.ByteFrame) error { bf.WriteUint32(m.ObjID) bf.WriteFloat32(m.X) bf.WriteFloat32(m.Y) diff --git a/network/mhfpacket/msg_sys_echo.go b/network/mhfpacket/msg_sys_echo.go index 880476d02..08ed214d7 100644 --- a/network/mhfpacket/msg_sys_echo.go +++ b/network/mhfpacket/msg_sys_echo.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgSysEcho) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysEcho) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysEcho) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgSysEcho) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysEcho) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_end.go b/network/mhfpacket/msg_sys_end.go index 09a9a387a..303fc0e1f 100644 --- a/network/mhfpacket/msg_sys_end.go +++ b/network/mhfpacket/msg_sys_end.go @@ -2,7 +2,6 @@ package mhfpacket import ( "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -15,13 +14,13 @@ func (m *MsgSysEnd) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysEnd) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysEnd) Parse(bf *byteframe.ByteFrame) error { // No data aside from opcode. return nil } // Build builds a binary packet from the current data. -func (m *MsgSysEnd) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysEnd) Build(bf *byteframe.ByteFrame) error { // No data aside from opcode. return nil } diff --git a/network/mhfpacket/msg_sys_enter_stage.go b/network/mhfpacket/msg_sys_enter_stage.go index b84d80ff6..7fed0e769 100644 --- a/network/mhfpacket/msg_sys_enter_stage.go +++ b/network/mhfpacket/msg_sys_enter_stage.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -21,7 +20,7 @@ func (m *MsgSysEnterStage) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysEnterStage) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysEnterStage) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.Unk = bf.ReadBool() // IsQuest? bf.ReadUint8() // Length StageID @@ -30,6 +29,6 @@ func (m *MsgSysEnterStage) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientC } // Build builds a binary packet from the current data. -func (m *MsgSysEnterStage) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysEnterStage) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_enumerate_client.go b/network/mhfpacket/msg_sys_enumerate_client.go index d7bf13916..e46ddb4a8 100644 --- a/network/mhfpacket/msg_sys_enumerate_client.go +++ b/network/mhfpacket/msg_sys_enumerate_client.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -22,7 +21,7 @@ func (m *MsgSysEnumerateClient) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysEnumerateClient) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysEnumerateClient) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.Unk0 = bf.ReadUint8() m.Get = bf.ReadUint8() @@ -32,6 +31,6 @@ func (m *MsgSysEnumerateClient) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Cl } // Build builds a binary packet from the current data. -func (m *MsgSysEnumerateClient) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysEnumerateClient) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_enumerate_stage.go b/network/mhfpacket/msg_sys_enumerate_stage.go index 1c977a191..5733cd9af 100644 --- a/network/mhfpacket/msg_sys_enumerate_stage.go +++ b/network/mhfpacket/msg_sys_enumerate_stage.go @@ -3,7 +3,6 @@ package mhfpacket import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -19,7 +18,7 @@ func (m *MsgSysEnumerateStage) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysEnumerateStage) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysEnumerateStage) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() bf.ReadUint8() // Always 1 bf.ReadUint8() // Length StagePrefix @@ -28,6 +27,6 @@ func (m *MsgSysEnumerateStage) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Cli } // Build builds a binary packet from the current data. -func (m *MsgSysEnumerateStage) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysEnumerateStage) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_enumlobby.go b/network/mhfpacket/msg_sys_enumlobby.go index 1c7e949b0..0566b9440 100644 --- a/network/mhfpacket/msg_sys_enumlobby.go +++ b/network/mhfpacket/msg_sys_enumlobby.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgSysEnumlobby) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysEnumlobby) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysEnumlobby) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgSysEnumlobby) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysEnumlobby) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_enumuser.go b/network/mhfpacket/msg_sys_enumuser.go index 98f412b0d..a8477a34e 100644 --- a/network/mhfpacket/msg_sys_enumuser.go +++ b/network/mhfpacket/msg_sys_enumuser.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgSysEnumuser) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysEnumuser) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysEnumuser) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgSysEnumuser) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysEnumuser) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_extend_threshold.go b/network/mhfpacket/msg_sys_extend_threshold.go index 2e1a6491f..cd8718a7e 100644 --- a/network/mhfpacket/msg_sys_extend_threshold.go +++ b/network/mhfpacket/msg_sys_extend_threshold.go @@ -2,7 +2,6 @@ package mhfpacket import ( "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -15,13 +14,13 @@ func (m *MsgSysExtendThreshold) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysExtendThreshold) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysExtendThreshold) Parse(bf *byteframe.ByteFrame) error { // No data aside from opcode. return nil } // Build builds a binary packet from the current data. -func (m *MsgSysExtendThreshold) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysExtendThreshold) Build(bf *byteframe.ByteFrame) error { // No data aside from opcode. return nil } diff --git a/network/mhfpacket/msg_sys_get_file.go b/network/mhfpacket/msg_sys_get_file.go index 71ef8d57c..15979e067 100644 --- a/network/mhfpacket/msg_sys_get_file.go +++ b/network/mhfpacket/msg_sys_get_file.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/bfutil" "erupe-ce/utils/byteframe" ) @@ -43,7 +42,7 @@ func (m *MsgSysGetFile) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysGetFile) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysGetFile) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.IsScenario = bf.ReadBool() filenameLength := bf.ReadUint8() @@ -63,6 +62,6 @@ func (m *MsgSysGetFile) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientCont } // Build builds a binary packet from the current data. -func (m *MsgSysGetFile) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysGetFile) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_get_object_binary.go b/network/mhfpacket/msg_sys_get_object_binary.go index 44da50c48..5dc5960aa 100644 --- a/network/mhfpacket/msg_sys_get_object_binary.go +++ b/network/mhfpacket/msg_sys_get_object_binary.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgSysGetObjectBinary) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysGetObjectBinary) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysGetObjectBinary) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgSysGetObjectBinary) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysGetObjectBinary) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_get_object_owner.go b/network/mhfpacket/msg_sys_get_object_owner.go index 1258ccb50..67a7a8285 100644 --- a/network/mhfpacket/msg_sys_get_object_owner.go +++ b/network/mhfpacket/msg_sys_get_object_owner.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgSysGetObjectOwner) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysGetObjectOwner) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysGetObjectOwner) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgSysGetObjectOwner) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysGetObjectOwner) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_get_stage_binary.go b/network/mhfpacket/msg_sys_get_stage_binary.go index 642932c84..6a81c0ddb 100644 --- a/network/mhfpacket/msg_sys_get_stage_binary.go +++ b/network/mhfpacket/msg_sys_get_stage_binary.go @@ -2,7 +2,6 @@ package mhfpacket import ( "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -21,7 +20,7 @@ func (m *MsgSysGetStageBinary) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysGetStageBinary) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysGetStageBinary) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.BinaryType0 = bf.ReadUint8() m.BinaryType1 = bf.ReadUint8() @@ -32,6 +31,6 @@ func (m *MsgSysGetStageBinary) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Cli } // Build builds a binary packet from the current data. -func (m *MsgSysGetStageBinary) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysGetStageBinary) Build(bf *byteframe.ByteFrame) error { panic("Not implemented") } diff --git a/network/mhfpacket/msg_sys_get_state.go b/network/mhfpacket/msg_sys_get_state.go index 64c46aaf9..fb53ff07c 100644 --- a/network/mhfpacket/msg_sys_get_state.go +++ b/network/mhfpacket/msg_sys_get_state.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgSysGetState) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysGetState) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysGetState) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgSysGetState) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysGetState) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_get_user_binary.go b/network/mhfpacket/msg_sys_get_user_binary.go index ebe538b65..97b1e54ee 100644 --- a/network/mhfpacket/msg_sys_get_user_binary.go +++ b/network/mhfpacket/msg_sys_get_user_binary.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -21,7 +20,7 @@ func (m *MsgSysGetUserBinary) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysGetUserBinary) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysGetUserBinary) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.CharID = bf.ReadUint32() m.BinaryType = bf.ReadUint8() @@ -29,6 +28,6 @@ func (m *MsgSysGetUserBinary) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Clie } // Build builds a binary packet from the current data. -func (m *MsgSysGetUserBinary) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysGetUserBinary) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_hide_client.go b/network/mhfpacket/msg_sys_hide_client.go index dbf3edae2..be39c6724 100644 --- a/network/mhfpacket/msg_sys_hide_client.go +++ b/network/mhfpacket/msg_sys_hide_client.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -19,7 +18,7 @@ func (m *MsgSysHideClient) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysHideClient) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysHideClient) Parse(bf *byteframe.ByteFrame) error { m.Hide = bf.ReadBool() bf.ReadUint8() // Zeroed bf.ReadUint8() // Zeroed @@ -28,6 +27,6 @@ func (m *MsgSysHideClient) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientC } // Build builds a binary packet from the current data. -func (m *MsgSysHideClient) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysHideClient) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_hide_object.go b/network/mhfpacket/msg_sys_hide_object.go index bbafea73c..536bae75f 100644 --- a/network/mhfpacket/msg_sys_hide_object.go +++ b/network/mhfpacket/msg_sys_hide_object.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgSysHideObject) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysHideObject) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysHideObject) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgSysHideObject) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysHideObject) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_infokyserver.go b/network/mhfpacket/msg_sys_infokyserver.go index bed0cdbc3..136d53976 100644 --- a/network/mhfpacket/msg_sys_infokyserver.go +++ b/network/mhfpacket/msg_sys_infokyserver.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgSysInfokyserver) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysInfokyserver) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysInfokyserver) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgSysInfokyserver) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysInfokyserver) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_insert_user.go b/network/mhfpacket/msg_sys_insert_user.go index 4a1136e2a..1801608bc 100644 --- a/network/mhfpacket/msg_sys_insert_user.go +++ b/network/mhfpacket/msg_sys_insert_user.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -19,12 +18,12 @@ func (m *MsgSysInsertUser) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysInsertUser) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysInsertUser) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgSysInsertUser) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysInsertUser) Build(bf *byteframe.ByteFrame) error { bf.WriteUint32(m.CharID) return nil } diff --git a/network/mhfpacket/msg_sys_issue_logkey.go b/network/mhfpacket/msg_sys_issue_logkey.go index c2aaf05c6..f9ff39364 100644 --- a/network/mhfpacket/msg_sys_issue_logkey.go +++ b/network/mhfpacket/msg_sys_issue_logkey.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -20,7 +19,7 @@ func (m *MsgSysIssueLogkey) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysIssueLogkey) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysIssueLogkey) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.Unk0 = bf.ReadUint16() bf.ReadUint16() // Zeroed @@ -28,6 +27,6 @@ func (m *MsgSysIssueLogkey) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Client } // Build builds a binary packet from the current data. -func (m *MsgSysIssueLogkey) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysIssueLogkey) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_leave_stage.go b/network/mhfpacket/msg_sys_leave_stage.go index b601aba6f..5bf07f271 100644 --- a/network/mhfpacket/msg_sys_leave_stage.go +++ b/network/mhfpacket/msg_sys_leave_stage.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgSysLeaveStage) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysLeaveStage) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysLeaveStage) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgSysLeaveStage) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysLeaveStage) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_load_register.go b/network/mhfpacket/msg_sys_load_register.go index 513f77fb7..c8ac54f5d 100644 --- a/network/mhfpacket/msg_sys_load_register.go +++ b/network/mhfpacket/msg_sys_load_register.go @@ -3,7 +3,6 @@ package mhfpacket import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -20,7 +19,7 @@ func (m *MsgSysLoadRegister) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysLoadRegister) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysLoadRegister) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.RegisterID = bf.ReadUint32() m.Values = bf.ReadUint8() @@ -30,6 +29,6 @@ func (m *MsgSysLoadRegister) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Clien } // Build builds a binary packet from the current data. -func (m *MsgSysLoadRegister) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysLoadRegister) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_lock_global_sema.go b/network/mhfpacket/msg_sys_lock_global_sema.go index 2b0ac4e52..c9e7d960d 100644 --- a/network/mhfpacket/msg_sys_lock_global_sema.go +++ b/network/mhfpacket/msg_sys_lock_global_sema.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -23,7 +22,7 @@ func (m *MsgSysLockGlobalSema) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysLockGlobalSema) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysLockGlobalSema) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.UserIDLength = bf.ReadUint16() m.ServerChannelIDLength = bf.ReadUint16() @@ -33,6 +32,6 @@ func (m *MsgSysLockGlobalSema) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Cli } // Build builds a binary packet from the current data. -func (m *MsgSysLockGlobalSema) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysLockGlobalSema) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_lock_stage.go b/network/mhfpacket/msg_sys_lock_stage.go index deeb20077..09c22643e 100644 --- a/network/mhfpacket/msg_sys_lock_stage.go +++ b/network/mhfpacket/msg_sys_lock_stage.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -20,7 +19,7 @@ func (m *MsgSysLockStage) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysLockStage) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysLockStage) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() bf.ReadUint8() // Always 1 bf.ReadUint8() // Always 1 @@ -30,6 +29,6 @@ func (m *MsgSysLockStage) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientCo } // Build builds a binary packet from the current data. -func (m *MsgSysLockStage) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysLockStage) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_login.go b/network/mhfpacket/msg_sys_login.go index 26f3b0617..6af4c6000 100644 --- a/network/mhfpacket/msg_sys_login.go +++ b/network/mhfpacket/msg_sys_login.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -25,7 +24,7 @@ func (m *MsgSysLogin) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysLogin) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysLogin) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.CharID0 = bf.ReadUint32() m.LoginTokenNumber = bf.ReadUint32() @@ -39,6 +38,6 @@ func (m *MsgSysLogin) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContex } // Build builds a binary packet from the current data. -func (m *MsgSysLogin) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysLogin) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_logout.go b/network/mhfpacket/msg_sys_logout.go index 093b02da1..9586bae9c 100644 --- a/network/mhfpacket/msg_sys_logout.go +++ b/network/mhfpacket/msg_sys_logout.go @@ -2,7 +2,6 @@ package mhfpacket import ( "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,13 +16,13 @@ func (m *MsgSysLogout) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysLogout) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysLogout) Parse(bf *byteframe.ByteFrame) error { m.Unk0 = bf.ReadUint8() return nil } // Build builds a binary packet from the current data. -func (m *MsgSysLogout) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysLogout) Build(bf *byteframe.ByteFrame) error { m.Unk0 = bf.ReadUint8() return nil } diff --git a/network/mhfpacket/msg_sys_move_stage.go b/network/mhfpacket/msg_sys_move_stage.go index 663012cc4..ce65a995d 100644 --- a/network/mhfpacket/msg_sys_move_stage.go +++ b/network/mhfpacket/msg_sys_move_stage.go @@ -2,7 +2,6 @@ package mhfpacket import ( "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/bfutil" "erupe-ce/utils/byteframe" ) @@ -21,7 +20,7 @@ func (m *MsgSysMoveStage) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysMoveStage) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysMoveStage) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.UnkBool = bf.ReadUint8() stageIDLength := bf.ReadUint8() @@ -30,6 +29,6 @@ func (m *MsgSysMoveStage) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientCo } // Build builds a binary packet from the current data. -func (m *MsgSysMoveStage) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysMoveStage) Build(bf *byteframe.ByteFrame) error { panic("Not implemented") } diff --git a/network/mhfpacket/msg_sys_nop.go b/network/mhfpacket/msg_sys_nop.go index a23711752..70a2ae4df 100644 --- a/network/mhfpacket/msg_sys_nop.go +++ b/network/mhfpacket/msg_sys_nop.go @@ -2,7 +2,6 @@ package mhfpacket import ( "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -15,13 +14,13 @@ func (m *MsgSysNop) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysNop) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysNop) Parse(bf *byteframe.ByteFrame) error { // No data aside from opcode. return nil } // Build builds a binary packet from the current data. -func (m *MsgSysNop) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysNop) Build(bf *byteframe.ByteFrame) error { // No data aside from opcode. return nil } diff --git a/network/mhfpacket/msg_sys_notify_register.go b/network/mhfpacket/msg_sys_notify_register.go index d8266724d..4d64f59f4 100644 --- a/network/mhfpacket/msg_sys_notify_register.go +++ b/network/mhfpacket/msg_sys_notify_register.go @@ -2,7 +2,6 @@ package mhfpacket import ( "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,13 +16,13 @@ func (m *MsgSysNotifyRegister) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysNotifyRegister) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysNotifyRegister) Parse(bf *byteframe.ByteFrame) error { m.RegisterID = bf.ReadUint32() return nil } // Build builds a binary packet from the current data. -func (m *MsgSysNotifyRegister) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysNotifyRegister) Build(bf *byteframe.ByteFrame) error { bf.WriteUint32(m.RegisterID) return nil } diff --git a/network/mhfpacket/msg_sys_notify_user_binary.go b/network/mhfpacket/msg_sys_notify_user_binary.go index 0ebec675c..acf4f2085 100644 --- a/network/mhfpacket/msg_sys_notify_user_binary.go +++ b/network/mhfpacket/msg_sys_notify_user_binary.go @@ -2,7 +2,6 @@ package mhfpacket import ( "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -18,14 +17,14 @@ func (m *MsgSysNotifyUserBinary) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysNotifyUserBinary) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysNotifyUserBinary) Parse(bf *byteframe.ByteFrame) error { m.CharID = bf.ReadUint32() m.BinaryType = bf.ReadUint8() return nil } // Build builds a binary packet from the current data. -func (m *MsgSysNotifyUserBinary) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysNotifyUserBinary) Build(bf *byteframe.ByteFrame) error { bf.WriteUint32(m.CharID) bf.WriteUint8(m.BinaryType) return nil diff --git a/network/mhfpacket/msg_sys_open_mutex.go b/network/mhfpacket/msg_sys_open_mutex.go index a55ce5f65..98ba4cd2e 100644 --- a/network/mhfpacket/msg_sys_open_mutex.go +++ b/network/mhfpacket/msg_sys_open_mutex.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgSysOpenMutex) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysOpenMutex) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysOpenMutex) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgSysOpenMutex) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysOpenMutex) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_operate_register.go b/network/mhfpacket/msg_sys_operate_register.go index a201d3141..23b6aaa15 100644 --- a/network/mhfpacket/msg_sys_operate_register.go +++ b/network/mhfpacket/msg_sys_operate_register.go @@ -3,7 +3,6 @@ package mhfpacket import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -20,7 +19,7 @@ func (m *MsgSysOperateRegister) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysOperateRegister) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysOperateRegister) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.SemaphoreID = bf.ReadUint32() bf.ReadUint16() // Zeroed @@ -30,6 +29,6 @@ func (m *MsgSysOperateRegister) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Cl } // Build builds a binary packet from the current data. -func (m *MsgSysOperateRegister) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysOperateRegister) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_ping.go b/network/mhfpacket/msg_sys_ping.go index f1c4d9594..0d6bff5b4 100644 --- a/network/mhfpacket/msg_sys_ping.go +++ b/network/mhfpacket/msg_sys_ping.go @@ -2,7 +2,6 @@ package mhfpacket import ( "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,13 +16,13 @@ func (m *MsgSysPing) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysPing) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysPing) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() return nil } // Build builds a binary packet from the current data. -func (m *MsgSysPing) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysPing) Build(bf *byteframe.ByteFrame) error { bf.WriteUint32(m.AckHandle) return nil } diff --git a/network/mhfpacket/msg_sys_position_object.go b/network/mhfpacket/msg_sys_position_object.go index dab97924b..d57627dd3 100644 --- a/network/mhfpacket/msg_sys_position_object.go +++ b/network/mhfpacket/msg_sys_position_object.go @@ -2,7 +2,6 @@ package mhfpacket import ( "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -18,7 +17,7 @@ func (m *MsgSysPositionObject) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysPositionObject) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysPositionObject) Parse(bf *byteframe.ByteFrame) error { m.ObjID = bf.ReadUint32() m.X = bf.ReadFloat32() m.Y = bf.ReadFloat32() @@ -27,7 +26,7 @@ func (m *MsgSysPositionObject) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Cli } // Build builds a binary packet from the current data. -func (m *MsgSysPositionObject) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysPositionObject) Build(bf *byteframe.ByteFrame) error { bf.WriteUint32(m.ObjID) bf.WriteFloat32(m.X) bf.WriteFloat32(m.Y) diff --git a/network/mhfpacket/msg_sys_record_log.go b/network/mhfpacket/msg_sys_record_log.go index c6cbb75f0..e216dce5d 100644 --- a/network/mhfpacket/msg_sys_record_log.go +++ b/network/mhfpacket/msg_sys_record_log.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -22,7 +21,7 @@ func (m *MsgSysRecordLog) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysRecordLog) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysRecordLog) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.Unk0 = bf.ReadUint32() bf.ReadUint16() // Zeroed @@ -34,6 +33,6 @@ func (m *MsgSysRecordLog) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientCo } // Build builds a binary packet from the current data. -func (m *MsgSysRecordLog) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysRecordLog) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_release_semaphore.go b/network/mhfpacket/msg_sys_release_semaphore.go index a9a3f89af..60edc84fb 100644 --- a/network/mhfpacket/msg_sys_release_semaphore.go +++ b/network/mhfpacket/msg_sys_release_semaphore.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -19,12 +18,12 @@ func (m *MsgSysReleaseSemaphore) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysReleaseSemaphore) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReleaseSemaphore) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() return nil } // Build builds a binary packet from the current data. -func (m *MsgSysReleaseSemaphore) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReleaseSemaphore) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_reserve01.go b/network/mhfpacket/msg_sys_reserve01.go index 84704a2af..e29814de5 100644 --- a/network/mhfpacket/msg_sys_reserve01.go +++ b/network/mhfpacket/msg_sys_reserve01.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgSysReserve01) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysReserve01) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve01) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgSysReserve01) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve01) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_reserve02.go b/network/mhfpacket/msg_sys_reserve02.go index 8d3a157fc..255c1b43a 100644 --- a/network/mhfpacket/msg_sys_reserve02.go +++ b/network/mhfpacket/msg_sys_reserve02.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgSysReserve02) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysReserve02) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve02) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgSysReserve02) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve02) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_reserve03.go b/network/mhfpacket/msg_sys_reserve03.go index 6e6fb85b8..31ab46a40 100644 --- a/network/mhfpacket/msg_sys_reserve03.go +++ b/network/mhfpacket/msg_sys_reserve03.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgSysReserve03) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysReserve03) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve03) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgSysReserve03) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve03) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_reserve04.go b/network/mhfpacket/msg_sys_reserve04.go index 5ab0c5879..853e9b66f 100644 --- a/network/mhfpacket/msg_sys_reserve04.go +++ b/network/mhfpacket/msg_sys_reserve04.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgSysReserve04) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysReserve04) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve04) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgSysReserve04) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve04) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_reserve05.go b/network/mhfpacket/msg_sys_reserve05.go index 21eed5af4..6f69885ac 100644 --- a/network/mhfpacket/msg_sys_reserve05.go +++ b/network/mhfpacket/msg_sys_reserve05.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgSysReserve05) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysReserve05) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve05) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgSysReserve05) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve05) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_reserve06.go b/network/mhfpacket/msg_sys_reserve06.go index 27da7e70a..ea19197a0 100644 --- a/network/mhfpacket/msg_sys_reserve06.go +++ b/network/mhfpacket/msg_sys_reserve06.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgSysReserve06) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysReserve06) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve06) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgSysReserve06) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve06) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_reserve07.go b/network/mhfpacket/msg_sys_reserve07.go index 68888e80d..535f679a7 100644 --- a/network/mhfpacket/msg_sys_reserve07.go +++ b/network/mhfpacket/msg_sys_reserve07.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgSysReserve07) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysReserve07) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve07) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgSysReserve07) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve07) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_reserve0c.go b/network/mhfpacket/msg_sys_reserve0c.go index 78a249241..3bd98d7f5 100644 --- a/network/mhfpacket/msg_sys_reserve0c.go +++ b/network/mhfpacket/msg_sys_reserve0c.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgSysReserve0C) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysReserve0C) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve0C) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgSysReserve0C) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve0C) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_reserve0d.go b/network/mhfpacket/msg_sys_reserve0d.go index 2fc30784e..80321a5a0 100644 --- a/network/mhfpacket/msg_sys_reserve0d.go +++ b/network/mhfpacket/msg_sys_reserve0d.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgSysReserve0D) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysReserve0D) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve0D) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgSysReserve0D) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve0D) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_reserve0e.go b/network/mhfpacket/msg_sys_reserve0e.go index bce876041..db0c04e99 100644 --- a/network/mhfpacket/msg_sys_reserve0e.go +++ b/network/mhfpacket/msg_sys_reserve0e.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgSysReserve0E) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysReserve0E) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve0E) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgSysReserve0E) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve0E) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_reserve180.go b/network/mhfpacket/msg_sys_reserve180.go index 31a11bcd8..2e5773db4 100644 --- a/network/mhfpacket/msg_sys_reserve180.go +++ b/network/mhfpacket/msg_sys_reserve180.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgSysReserve180) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysReserve180) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve180) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgSysReserve180) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve180) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_reserve188.go b/network/mhfpacket/msg_sys_reserve188.go index d671f216f..6f94f9720 100644 --- a/network/mhfpacket/msg_sys_reserve188.go +++ b/network/mhfpacket/msg_sys_reserve188.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -19,12 +18,12 @@ func (m *MsgSysReserve188) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysReserve188) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve188) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() return nil } // Build builds a binary packet from the current data. -func (m *MsgSysReserve188) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve188) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_reserve18b.go b/network/mhfpacket/msg_sys_reserve18b.go index 176e6bdd6..fbe98209f 100644 --- a/network/mhfpacket/msg_sys_reserve18b.go +++ b/network/mhfpacket/msg_sys_reserve18b.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -19,12 +18,12 @@ func (m *MsgSysReserve18B) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysReserve18B) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve18B) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() return nil } // Build builds a binary packet from the current data. -func (m *MsgSysReserve18B) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve18B) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_reserve18e.go b/network/mhfpacket/msg_sys_reserve18e.go index ff8a0baae..4bbc0e62b 100644 --- a/network/mhfpacket/msg_sys_reserve18e.go +++ b/network/mhfpacket/msg_sys_reserve18e.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgSysReserve18E) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysReserve18E) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve18E) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgSysReserve18E) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve18E) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_reserve18f.go b/network/mhfpacket/msg_sys_reserve18f.go index 9d73f92a6..f2bdc054f 100644 --- a/network/mhfpacket/msg_sys_reserve18f.go +++ b/network/mhfpacket/msg_sys_reserve18f.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgSysReserve18F) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysReserve18F) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve18F) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgSysReserve18F) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve18F) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_reserve192.go b/network/mhfpacket/msg_sys_reserve192.go index 9c64a1675..54f242b23 100644 --- a/network/mhfpacket/msg_sys_reserve192.go +++ b/network/mhfpacket/msg_sys_reserve192.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgSysReserve192) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysReserve192) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve192) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgSysReserve192) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve192) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_reserve193.go b/network/mhfpacket/msg_sys_reserve193.go index 2bfa69c44..ac5a156b2 100644 --- a/network/mhfpacket/msg_sys_reserve193.go +++ b/network/mhfpacket/msg_sys_reserve193.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgSysReserve193) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysReserve193) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve193) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgSysReserve193) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve193) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_reserve194.go b/network/mhfpacket/msg_sys_reserve194.go index 4d650e58a..b5bea2e07 100644 --- a/network/mhfpacket/msg_sys_reserve194.go +++ b/network/mhfpacket/msg_sys_reserve194.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgSysReserve194) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysReserve194) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve194) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgSysReserve194) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve194) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_reserve19b.go b/network/mhfpacket/msg_sys_reserve19b.go index 7a7973d2b..406117dfd 100644 --- a/network/mhfpacket/msg_sys_reserve19b.go +++ b/network/mhfpacket/msg_sys_reserve19b.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgSysReserve19B) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysReserve19B) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve19B) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgSysReserve19B) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve19B) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_reserve19e.go b/network/mhfpacket/msg_sys_reserve19e.go index ed182dab2..5f56abeb6 100644 --- a/network/mhfpacket/msg_sys_reserve19e.go +++ b/network/mhfpacket/msg_sys_reserve19e.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgSysReserve19E) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysReserve19E) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve19E) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgSysReserve19E) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve19E) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_reserve19f.go b/network/mhfpacket/msg_sys_reserve19f.go index aa74bfc2b..e183d293c 100644 --- a/network/mhfpacket/msg_sys_reserve19f.go +++ b/network/mhfpacket/msg_sys_reserve19f.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgSysReserve19F) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysReserve19F) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve19F) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgSysReserve19F) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve19F) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_reserve1a4.go b/network/mhfpacket/msg_sys_reserve1a4.go index 495c16f4c..fed8bba47 100644 --- a/network/mhfpacket/msg_sys_reserve1a4.go +++ b/network/mhfpacket/msg_sys_reserve1a4.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgSysReserve1A4) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysReserve1A4) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve1A4) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgSysReserve1A4) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve1A4) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_reserve1a6.go b/network/mhfpacket/msg_sys_reserve1a6.go index d85a2f7c1..461c8e671 100644 --- a/network/mhfpacket/msg_sys_reserve1a6.go +++ b/network/mhfpacket/msg_sys_reserve1a6.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgSysReserve1A6) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysReserve1A6) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve1A6) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgSysReserve1A6) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve1A6) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_reserve1a7.go b/network/mhfpacket/msg_sys_reserve1a7.go index f9431f32b..f273ed93b 100644 --- a/network/mhfpacket/msg_sys_reserve1a7.go +++ b/network/mhfpacket/msg_sys_reserve1a7.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgSysReserve1A7) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysReserve1A7) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve1A7) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgSysReserve1A7) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve1A7) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_reserve1a8.go b/network/mhfpacket/msg_sys_reserve1a8.go index 014644bf5..19388e775 100644 --- a/network/mhfpacket/msg_sys_reserve1a8.go +++ b/network/mhfpacket/msg_sys_reserve1a8.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgSysReserve1A8) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysReserve1A8) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve1A8) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgSysReserve1A8) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve1A8) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_reserve1a9.go b/network/mhfpacket/msg_sys_reserve1a9.go index fc74eb396..d74b6565f 100644 --- a/network/mhfpacket/msg_sys_reserve1a9.go +++ b/network/mhfpacket/msg_sys_reserve1a9.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgSysReserve1A9) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysReserve1A9) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve1A9) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgSysReserve1A9) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve1A9) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_reserve1aa.go b/network/mhfpacket/msg_sys_reserve1aa.go index 0b5150d18..1add00303 100644 --- a/network/mhfpacket/msg_sys_reserve1aa.go +++ b/network/mhfpacket/msg_sys_reserve1aa.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgSysReserve1AA) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysReserve1AA) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve1AA) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgSysReserve1AA) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve1AA) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_reserve1ab.go b/network/mhfpacket/msg_sys_reserve1ab.go index 1e1e70c9a..18f1318e3 100644 --- a/network/mhfpacket/msg_sys_reserve1ab.go +++ b/network/mhfpacket/msg_sys_reserve1ab.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgSysReserve1AB) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysReserve1AB) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve1AB) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgSysReserve1AB) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve1AB) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_reserve1ac.go b/network/mhfpacket/msg_sys_reserve1ac.go index 658e4e43d..89579e611 100644 --- a/network/mhfpacket/msg_sys_reserve1ac.go +++ b/network/mhfpacket/msg_sys_reserve1ac.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgSysReserve1AC) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysReserve1AC) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve1AC) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgSysReserve1AC) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve1AC) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_reserve1ad.go b/network/mhfpacket/msg_sys_reserve1ad.go index 1b7040165..ad16cc34b 100644 --- a/network/mhfpacket/msg_sys_reserve1ad.go +++ b/network/mhfpacket/msg_sys_reserve1ad.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgSysReserve1AD) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysReserve1AD) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve1AD) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgSysReserve1AD) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve1AD) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_reserve1ae.go b/network/mhfpacket/msg_sys_reserve1ae.go index 8f58e4dfd..cfd3a99a8 100644 --- a/network/mhfpacket/msg_sys_reserve1ae.go +++ b/network/mhfpacket/msg_sys_reserve1ae.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgSysReserve1AE) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysReserve1AE) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve1AE) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgSysReserve1AE) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve1AE) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_reserve1af.go b/network/mhfpacket/msg_sys_reserve1af.go index a1c2dc758..20b6b8730 100644 --- a/network/mhfpacket/msg_sys_reserve1af.go +++ b/network/mhfpacket/msg_sys_reserve1af.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgSysReserve1AF) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysReserve1AF) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve1AF) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgSysReserve1AF) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve1AF) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_reserve4a.go b/network/mhfpacket/msg_sys_reserve4a.go index 8ddee41ff..20d4e3458 100644 --- a/network/mhfpacket/msg_sys_reserve4a.go +++ b/network/mhfpacket/msg_sys_reserve4a.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgSysReserve4A) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysReserve4A) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve4A) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgSysReserve4A) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve4A) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_reserve4b.go b/network/mhfpacket/msg_sys_reserve4b.go index 2439762dd..17c83fd38 100644 --- a/network/mhfpacket/msg_sys_reserve4b.go +++ b/network/mhfpacket/msg_sys_reserve4b.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgSysReserve4B) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysReserve4B) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve4B) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgSysReserve4B) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve4B) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_reserve4c.go b/network/mhfpacket/msg_sys_reserve4c.go index e27f7ef25..e35941112 100644 --- a/network/mhfpacket/msg_sys_reserve4c.go +++ b/network/mhfpacket/msg_sys_reserve4c.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgSysReserve4C) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysReserve4C) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve4C) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgSysReserve4C) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve4C) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_reserve4d.go b/network/mhfpacket/msg_sys_reserve4d.go index f1f8cb7f9..c93b3b345 100644 --- a/network/mhfpacket/msg_sys_reserve4d.go +++ b/network/mhfpacket/msg_sys_reserve4d.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgSysReserve4D) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysReserve4D) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve4D) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgSysReserve4D) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve4D) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_reserve4e.go b/network/mhfpacket/msg_sys_reserve4e.go index 92d56ad35..87648a4fe 100644 --- a/network/mhfpacket/msg_sys_reserve4e.go +++ b/network/mhfpacket/msg_sys_reserve4e.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgSysReserve4E) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysReserve4E) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve4E) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgSysReserve4E) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve4E) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_reserve4f.go b/network/mhfpacket/msg_sys_reserve4f.go index cff5004fa..850475eec 100644 --- a/network/mhfpacket/msg_sys_reserve4f.go +++ b/network/mhfpacket/msg_sys_reserve4f.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgSysReserve4F) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysReserve4F) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve4F) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgSysReserve4F) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve4F) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_reserve55.go b/network/mhfpacket/msg_sys_reserve55.go index 5112cd7e3..753dbf50b 100644 --- a/network/mhfpacket/msg_sys_reserve55.go +++ b/network/mhfpacket/msg_sys_reserve55.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgSysReserve55) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysReserve55) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve55) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgSysReserve55) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve55) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_reserve56.go b/network/mhfpacket/msg_sys_reserve56.go index 26e57fa87..04f9494c9 100644 --- a/network/mhfpacket/msg_sys_reserve56.go +++ b/network/mhfpacket/msg_sys_reserve56.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgSysReserve56) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysReserve56) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve56) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgSysReserve56) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve56) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_reserve57.go b/network/mhfpacket/msg_sys_reserve57.go index cdb816126..dffefa72b 100644 --- a/network/mhfpacket/msg_sys_reserve57.go +++ b/network/mhfpacket/msg_sys_reserve57.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgSysReserve57) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysReserve57) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve57) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgSysReserve57) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve57) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_reserve5c.go b/network/mhfpacket/msg_sys_reserve5c.go index 28b0d59e8..c1504353f 100644 --- a/network/mhfpacket/msg_sys_reserve5c.go +++ b/network/mhfpacket/msg_sys_reserve5c.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgSysReserve5C) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysReserve5C) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve5C) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgSysReserve5C) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve5C) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_reserve5e.go b/network/mhfpacket/msg_sys_reserve5e.go index 5c48c314d..3f11a4dcd 100644 --- a/network/mhfpacket/msg_sys_reserve5e.go +++ b/network/mhfpacket/msg_sys_reserve5e.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgSysReserve5E) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysReserve5E) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve5E) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgSysReserve5E) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve5E) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_reserve5f.go b/network/mhfpacket/msg_sys_reserve5f.go index afc7abe72..886f8389c 100644 --- a/network/mhfpacket/msg_sys_reserve5f.go +++ b/network/mhfpacket/msg_sys_reserve5f.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgSysReserve5F) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysReserve5F) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve5F) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgSysReserve5F) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve5F) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_reserve71.go b/network/mhfpacket/msg_sys_reserve71.go index 8354af4a0..395f2df37 100644 --- a/network/mhfpacket/msg_sys_reserve71.go +++ b/network/mhfpacket/msg_sys_reserve71.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgSysReserve71) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysReserve71) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve71) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgSysReserve71) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve71) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_reserve72.go b/network/mhfpacket/msg_sys_reserve72.go index 9186860b8..608484389 100644 --- a/network/mhfpacket/msg_sys_reserve72.go +++ b/network/mhfpacket/msg_sys_reserve72.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgSysReserve72) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysReserve72) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve72) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgSysReserve72) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve72) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_reserve73.go b/network/mhfpacket/msg_sys_reserve73.go index 24f1b28d7..c3569faa9 100644 --- a/network/mhfpacket/msg_sys_reserve73.go +++ b/network/mhfpacket/msg_sys_reserve73.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgSysReserve73) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysReserve73) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve73) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgSysReserve73) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve73) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_reserve74.go b/network/mhfpacket/msg_sys_reserve74.go index ae2578369..7caf7b69d 100644 --- a/network/mhfpacket/msg_sys_reserve74.go +++ b/network/mhfpacket/msg_sys_reserve74.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgSysReserve74) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysReserve74) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve74) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgSysReserve74) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve74) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_reserve75.go b/network/mhfpacket/msg_sys_reserve75.go index 05a526688..7cb2c72a8 100644 --- a/network/mhfpacket/msg_sys_reserve75.go +++ b/network/mhfpacket/msg_sys_reserve75.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgSysReserve75) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysReserve75) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve75) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgSysReserve75) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve75) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_reserve76.go b/network/mhfpacket/msg_sys_reserve76.go index 7aaed51c3..aa22ee08f 100644 --- a/network/mhfpacket/msg_sys_reserve76.go +++ b/network/mhfpacket/msg_sys_reserve76.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgSysReserve76) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysReserve76) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve76) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgSysReserve76) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve76) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_reserve77.go b/network/mhfpacket/msg_sys_reserve77.go index 5b47c3402..dbc924ec7 100644 --- a/network/mhfpacket/msg_sys_reserve77.go +++ b/network/mhfpacket/msg_sys_reserve77.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgSysReserve77) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysReserve77) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve77) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgSysReserve77) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve77) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_reserve78.go b/network/mhfpacket/msg_sys_reserve78.go index 4ff3b9d86..df8c5371d 100644 --- a/network/mhfpacket/msg_sys_reserve78.go +++ b/network/mhfpacket/msg_sys_reserve78.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgSysReserve78) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysReserve78) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve78) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgSysReserve78) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve78) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_reserve79.go b/network/mhfpacket/msg_sys_reserve79.go index 0e443e427..cdb61812c 100644 --- a/network/mhfpacket/msg_sys_reserve79.go +++ b/network/mhfpacket/msg_sys_reserve79.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgSysReserve79) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysReserve79) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve79) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgSysReserve79) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve79) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_reserve7a.go b/network/mhfpacket/msg_sys_reserve7a.go index cd44943d3..2e76269fd 100644 --- a/network/mhfpacket/msg_sys_reserve7a.go +++ b/network/mhfpacket/msg_sys_reserve7a.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgSysReserve7A) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysReserve7A) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve7A) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgSysReserve7A) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve7A) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_reserve7b.go b/network/mhfpacket/msg_sys_reserve7b.go index 3f622d6e5..8a5cf70b2 100644 --- a/network/mhfpacket/msg_sys_reserve7b.go +++ b/network/mhfpacket/msg_sys_reserve7b.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgSysReserve7B) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysReserve7B) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve7B) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgSysReserve7B) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve7B) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_reserve7c.go b/network/mhfpacket/msg_sys_reserve7c.go index 24cdd30f0..71cb0b4ca 100644 --- a/network/mhfpacket/msg_sys_reserve7c.go +++ b/network/mhfpacket/msg_sys_reserve7c.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgSysReserve7C) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysReserve7C) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve7C) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgSysReserve7C) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve7C) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_reserve7e.go b/network/mhfpacket/msg_sys_reserve7e.go index d7700ad00..02983122b 100644 --- a/network/mhfpacket/msg_sys_reserve7e.go +++ b/network/mhfpacket/msg_sys_reserve7e.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgSysReserve7E) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysReserve7E) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve7E) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgSysReserve7E) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserve7E) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_reserve_stage.go b/network/mhfpacket/msg_sys_reserve_stage.go index 4a8f734cb..c2e798b5b 100644 --- a/network/mhfpacket/msg_sys_reserve_stage.go +++ b/network/mhfpacket/msg_sys_reserve_stage.go @@ -3,7 +3,6 @@ package mhfpacket import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -20,7 +19,7 @@ func (m *MsgSysReserveStage) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysReserveStage) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserveStage) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.Ready = bf.ReadUint8() _ = bf.ReadUint8() // StageID length @@ -29,6 +28,6 @@ func (m *MsgSysReserveStage) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Clien } // Build builds a binary packet from the current data. -func (m *MsgSysReserveStage) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysReserveStage) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_rights_reload.go b/network/mhfpacket/msg_sys_rights_reload.go index 4b0378ce7..23793d17d 100644 --- a/network/mhfpacket/msg_sys_rights_reload.go +++ b/network/mhfpacket/msg_sys_rights_reload.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -20,13 +19,13 @@ func (m *MsgSysRightsReload) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysRightsReload) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysRightsReload) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.Unk0 = bf.ReadBytes(uint(bf.ReadUint8())) return nil } // Build builds a binary packet from the current data. -func (m *MsgSysRightsReload) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysRightsReload) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_rotate_object.go b/network/mhfpacket/msg_sys_rotate_object.go index 1896e8413..8ee05127b 100644 --- a/network/mhfpacket/msg_sys_rotate_object.go +++ b/network/mhfpacket/msg_sys_rotate_object.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgSysRotateObject) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysRotateObject) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysRotateObject) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgSysRotateObject) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysRotateObject) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_serialize.go b/network/mhfpacket/msg_sys_serialize.go index dd44f9949..e25a73c94 100644 --- a/network/mhfpacket/msg_sys_serialize.go +++ b/network/mhfpacket/msg_sys_serialize.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgSysSerialize) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysSerialize) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysSerialize) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgSysSerialize) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysSerialize) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_set_object_binary.go b/network/mhfpacket/msg_sys_set_object_binary.go index 1dcd95429..b5ce5b6c8 100644 --- a/network/mhfpacket/msg_sys_set_object_binary.go +++ b/network/mhfpacket/msg_sys_set_object_binary.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -21,7 +20,7 @@ func (m *MsgSysSetObjectBinary) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysSetObjectBinary) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysSetObjectBinary) Parse(bf *byteframe.ByteFrame) error { m.ObjID = bf.ReadUint32() m.DataSize = bf.ReadUint16() m.RawDataPayload = bf.ReadBytes(uint(m.DataSize)) @@ -29,6 +28,6 @@ func (m *MsgSysSetObjectBinary) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Cl } // Build builds a binary packet from the current data. -func (m *MsgSysSetObjectBinary) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysSetObjectBinary) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_set_stage_binary.go b/network/mhfpacket/msg_sys_set_stage_binary.go index 153ab0314..a5146c5e3 100644 --- a/network/mhfpacket/msg_sys_set_stage_binary.go +++ b/network/mhfpacket/msg_sys_set_stage_binary.go @@ -2,7 +2,6 @@ package mhfpacket import ( "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -20,7 +19,7 @@ func (m *MsgSysSetStageBinary) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysSetStageBinary) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysSetStageBinary) Parse(bf *byteframe.ByteFrame) error { m.BinaryType0 = bf.ReadUint8() m.BinaryType1 = bf.ReadUint8() bf.ReadUint8() // StageID length <= 0x20 @@ -31,6 +30,6 @@ func (m *MsgSysSetStageBinary) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Cli } // Build builds a binary packet from the current data. -func (m *MsgSysSetStageBinary) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysSetStageBinary) Build(bf *byteframe.ByteFrame) error { panic("Not implemented") } diff --git a/network/mhfpacket/msg_sys_set_stage_pass.go b/network/mhfpacket/msg_sys_set_stage_pass.go index 1a32f9077..bee07d990 100644 --- a/network/mhfpacket/msg_sys_set_stage_pass.go +++ b/network/mhfpacket/msg_sys_set_stage_pass.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -19,7 +18,7 @@ func (m *MsgSysSetStagePass) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysSetStagePass) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysSetStagePass) Parse(bf *byteframe.ByteFrame) error { bf.ReadUint8() // Zeroed bf.ReadUint8() // Password length m.Password = string(bf.ReadNullTerminatedBytes()) @@ -27,6 +26,6 @@ func (m *MsgSysSetStagePass) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Clien } // Build builds a binary packet from the current data. -func (m *MsgSysSetStagePass) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysSetStagePass) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_set_status.go b/network/mhfpacket/msg_sys_set_status.go index edf3b087e..aa67fafd7 100644 --- a/network/mhfpacket/msg_sys_set_status.go +++ b/network/mhfpacket/msg_sys_set_status.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgSysSetStatus) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysSetStatus) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysSetStatus) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgSysSetStatus) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysSetStatus) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_set_user_binary.go b/network/mhfpacket/msg_sys_set_user_binary.go index 35e5475a1..733d739a5 100644 --- a/network/mhfpacket/msg_sys_set_user_binary.go +++ b/network/mhfpacket/msg_sys_set_user_binary.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -21,7 +20,7 @@ func (m *MsgSysSetUserBinary) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysSetUserBinary) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysSetUserBinary) Parse(bf *byteframe.ByteFrame) error { m.BinaryType = bf.ReadUint8() m.DataSize = bf.ReadUint16() m.RawDataPayload = bf.ReadBytes(uint(m.DataSize)) @@ -29,6 +28,6 @@ func (m *MsgSysSetUserBinary) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Clie } // Build builds a binary packet from the current data. -func (m *MsgSysSetUserBinary) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysSetUserBinary) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_stage_destruct.go b/network/mhfpacket/msg_sys_stage_destruct.go index 98e8e9095..75f0d74f8 100644 --- a/network/mhfpacket/msg_sys_stage_destruct.go +++ b/network/mhfpacket/msg_sys_stage_destruct.go @@ -2,7 +2,6 @@ package mhfpacket import ( "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -15,13 +14,13 @@ func (m *MsgSysStageDestruct) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysStageDestruct) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysStageDestruct) Parse(bf *byteframe.ByteFrame) error { // No data other than opcode return nil } // Build builds a binary packet from the current data. -func (m *MsgSysStageDestruct) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysStageDestruct) Build(bf *byteframe.ByteFrame) error { // No data other than opcode return nil } diff --git a/network/mhfpacket/msg_sys_terminal_log.go b/network/mhfpacket/msg_sys_terminal_log.go index 357ac2295..b7eed3e9f 100644 --- a/network/mhfpacket/msg_sys_terminal_log.go +++ b/network/mhfpacket/msg_sys_terminal_log.go @@ -5,7 +5,6 @@ import ( _config "erupe-ce/config" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -34,7 +33,7 @@ func (m *MsgSysTerminalLog) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysTerminalLog) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysTerminalLog) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.LogID = bf.ReadUint32() entryCount := int(bf.ReadUint16()) @@ -61,6 +60,6 @@ func (m *MsgSysTerminalLog) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Client } // Build builds a binary packet from the current data. -func (m *MsgSysTerminalLog) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysTerminalLog) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_time.go b/network/mhfpacket/msg_sys_time.go index 4dac55d19..47f3feeca 100644 --- a/network/mhfpacket/msg_sys_time.go +++ b/network/mhfpacket/msg_sys_time.go @@ -2,7 +2,6 @@ package mhfpacket import ( "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -18,14 +17,14 @@ func (m *MsgSysTime) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysTime) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysTime) Parse(bf *byteframe.ByteFrame) error { m.GetRemoteTime = bf.ReadBool() m.Timestamp = bf.ReadUint32() return nil } // Build builds a binary packet from the current data. -func (m *MsgSysTime) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysTime) Build(bf *byteframe.ByteFrame) error { bf.WriteBool(m.GetRemoteTime) bf.WriteUint32(m.Timestamp) return nil diff --git a/network/mhfpacket/msg_sys_trans_binary.go b/network/mhfpacket/msg_sys_trans_binary.go index 3ea242f05..9519e31ed 100644 --- a/network/mhfpacket/msg_sys_trans_binary.go +++ b/network/mhfpacket/msg_sys_trans_binary.go @@ -4,7 +4,6 @@ import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgSysTransBinary) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysTransBinary) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysTransBinary) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgSysTransBinary) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysTransBinary) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_unlock_global_sema.go b/network/mhfpacket/msg_sys_unlock_global_sema.go index 1126ab44d..117ad5493 100644 --- a/network/mhfpacket/msg_sys_unlock_global_sema.go +++ b/network/mhfpacket/msg_sys_unlock_global_sema.go @@ -2,7 +2,6 @@ package mhfpacket import ( "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,13 +16,13 @@ func (m *MsgSysUnlockGlobalSema) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysUnlockGlobalSema) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysUnlockGlobalSema) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() return nil } // Build builds a binary packet from the current data. -func (m *MsgSysUnlockGlobalSema) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysUnlockGlobalSema) Build(bf *byteframe.ByteFrame) error { bf.WriteUint32(m.AckHandle) return nil } diff --git a/network/mhfpacket/msg_sys_unlock_stage.go b/network/mhfpacket/msg_sys_unlock_stage.go index adb9c2584..f2dc24182 100644 --- a/network/mhfpacket/msg_sys_unlock_stage.go +++ b/network/mhfpacket/msg_sys_unlock_stage.go @@ -3,7 +3,6 @@ package mhfpacket import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -16,12 +15,12 @@ func (m *MsgSysUnlockStage) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysUnlockStage) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysUnlockStage) Parse(bf *byteframe.ByteFrame) error { bf.ReadUint16() // Zeroed return nil } // Build builds a binary packet from the current data. -func (m *MsgSysUnlockStage) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysUnlockStage) Build(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } diff --git a/network/mhfpacket/msg_sys_unreserve_stage.go b/network/mhfpacket/msg_sys_unreserve_stage.go index 3d7d246d1..b26c8badc 100644 --- a/network/mhfpacket/msg_sys_unreserve_stage.go +++ b/network/mhfpacket/msg_sys_unreserve_stage.go @@ -2,7 +2,6 @@ package mhfpacket import ( "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -17,11 +16,11 @@ func (m *MsgSysUnreserveStage) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysUnreserveStage) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysUnreserveStage) Parse(bf *byteframe.ByteFrame) error { return nil } // Build builds a binary packet from the current data. -func (m *MsgSysUnreserveStage) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysUnreserveStage) Build(bf *byteframe.ByteFrame) error { return nil } diff --git a/network/mhfpacket/msg_sys_update_object_binary.go b/network/mhfpacket/msg_sys_update_object_binary.go index f384f7c3a..df8023a9c 100644 --- a/network/mhfpacket/msg_sys_update_object_binary.go +++ b/network/mhfpacket/msg_sys_update_object_binary.go @@ -2,7 +2,6 @@ package mhfpacket import ( "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -18,14 +17,14 @@ func (m *MsgSysUpdateObjectBinary) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysUpdateObjectBinary) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysUpdateObjectBinary) Parse(bf *byteframe.ByteFrame) error { m.Unk0 = bf.ReadUint32() m.Unk1 = bf.ReadUint32() return nil } // Build builds a binary packet from the current data. -func (m *MsgSysUpdateObjectBinary) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysUpdateObjectBinary) Build(bf *byteframe.ByteFrame) error { bf.WriteUint32(m.Unk0) bf.WriteUint32(m.Unk1) return nil diff --git a/network/mhfpacket/msg_sys_update_right.go b/network/mhfpacket/msg_sys_update_right.go index 6d7177e52..e22b10cef 100644 --- a/network/mhfpacket/msg_sys_update_right.go +++ b/network/mhfpacket/msg_sys_update_right.go @@ -3,7 +3,6 @@ package mhfpacket import ( "errors" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" "erupe-ce/utils/mhfcourse" ps "erupe-ce/utils/pascalstring" @@ -23,12 +22,12 @@ func (m *MsgSysUpdateRight) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysUpdateRight) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysUpdateRight) Parse(bf *byteframe.ByteFrame) error { return errors.New("NOT IMPLEMENTED") } // Build builds a binary packet from the current data. -func (m *MsgSysUpdateRight) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysUpdateRight) Build(bf *byteframe.ByteFrame) error { bf.WriteUint32(m.ClientRespAckHandle) bf.WriteUint32(m.Bitfield) bf.WriteUint16(uint16(len(m.Rights))) diff --git a/network/mhfpacket/msg_sys_wait_stage_binary.go b/network/mhfpacket/msg_sys_wait_stage_binary.go index 153285c44..7362a9be2 100644 --- a/network/mhfpacket/msg_sys_wait_stage_binary.go +++ b/network/mhfpacket/msg_sys_wait_stage_binary.go @@ -2,7 +2,6 @@ package mhfpacket import ( "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/utils/byteframe" ) @@ -21,7 +20,7 @@ func (m *MsgSysWaitStageBinary) Opcode() network.PacketID { } // Parse parses the packet from binary -func (m *MsgSysWaitStageBinary) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysWaitStageBinary) Parse(bf *byteframe.ByteFrame) error { m.AckHandle = bf.ReadUint32() m.BinaryType0 = bf.ReadUint8() m.BinaryType1 = bf.ReadUint8() @@ -32,6 +31,6 @@ func (m *MsgSysWaitStageBinary) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Cl } // Build builds a binary packet from the current data. -func (m *MsgSysWaitStageBinary) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { +func (m *MsgSysWaitStageBinary) Build(bf *byteframe.ByteFrame) error { panic("Not implemented") } diff --git a/server/channelserver/ack_helpers.go b/server/channelserver/ack_helpers.go new file mode 100644 index 000000000..4e34a69e6 --- /dev/null +++ b/server/channelserver/ack_helpers.go @@ -0,0 +1,54 @@ +package channelserver + +import ( + "erupe-ce/network/mhfpacket" + "erupe-ce/utils/byteframe" +) + +func doAckEarthSucceed(s *Session, ackHandle uint32, data []*byteframe.ByteFrame) { + bf := byteframe.NewByteFrame() + bf.WriteUint32(uint32(s.server.erupeConfig.EarthID)) + bf.WriteUint32(0) + bf.WriteUint32(0) + bf.WriteUint32(uint32(len(data))) + for i := range data { + bf.WriteBytes(data[i].Data()) + } + doAckBufSucceed(s, ackHandle, bf.Data()) +} + +func doAckBufSucceed(s *Session, ackHandle uint32, data []byte) { + s.QueueSendMHF(&mhfpacket.MsgSysAck{ + AckHandle: ackHandle, + IsBufferResponse: true, + ErrorCode: 0, + AckData: data, + }) +} + +func doAckBufFail(s *Session, ackHandle uint32, data []byte) { + s.QueueSendMHF(&mhfpacket.MsgSysAck{ + AckHandle: ackHandle, + IsBufferResponse: true, + ErrorCode: 1, + AckData: data, + }) +} + +func doAckSimpleSucceed(s *Session, ackHandle uint32, data []byte) { + s.QueueSendMHF(&mhfpacket.MsgSysAck{ + AckHandle: ackHandle, + IsBufferResponse: false, + ErrorCode: 0, + AckData: data, + }) +} + +func doAckSimpleFail(s *Session, ackHandle uint32, data []byte) { + s.QueueSendMHF(&mhfpacket.MsgSysAck{ + AckHandle: ackHandle, + IsBufferResponse: false, + ErrorCode: 1, + AckData: data, + }) +} diff --git a/server/channelserver/handlers.go b/server/channelserver/handlers.go index 7847fbd8b..c988ddb75 100644 --- a/server/channelserver/handlers.go +++ b/server/channelserver/handlers.go @@ -31,54 +31,6 @@ func stubEnumerateNoResults(s *Session, ackHandle uint32) { doAckBufSucceed(s, ackHandle, enumBf.Data()) } -func doAckEarthSucceed(s *Session, ackHandle uint32, data []*byteframe.ByteFrame) { - bf := byteframe.NewByteFrame() - bf.WriteUint32(uint32(s.server.erupeConfig.EarthID)) - bf.WriteUint32(0) - bf.WriteUint32(0) - bf.WriteUint32(uint32(len(data))) - for i := range data { - bf.WriteBytes(data[i].Data()) - } - doAckBufSucceed(s, ackHandle, bf.Data()) -} - -func doAckBufSucceed(s *Session, ackHandle uint32, data []byte) { - s.QueueSendMHF(&mhfpacket.MsgSysAck{ - AckHandle: ackHandle, - IsBufferResponse: true, - ErrorCode: 0, - AckData: data, - }) -} - -func doAckBufFail(s *Session, ackHandle uint32, data []byte) { - s.QueueSendMHF(&mhfpacket.MsgSysAck{ - AckHandle: ackHandle, - IsBufferResponse: true, - ErrorCode: 1, - AckData: data, - }) -} - -func doAckSimpleSucceed(s *Session, ackHandle uint32, data []byte) { - s.QueueSendMHF(&mhfpacket.MsgSysAck{ - AckHandle: ackHandle, - IsBufferResponse: false, - ErrorCode: 0, - AckData: data, - }) -} - -func doAckSimpleFail(s *Session, ackHandle uint32, data []byte) { - s.QueueSendMHF(&mhfpacket.MsgSysAck{ - AckHandle: ackHandle, - IsBufferResponse: false, - ErrorCode: 1, - AckData: data, - }) -} - func updateRights(s *Session) { rightsInt := uint32(2) s.server.db.QueryRow("SELECT rights FROM users u INNER JOIN characters c ON u.id = c.user_id WHERE c.id = $1", s.charID).Scan(&rightsInt) diff --git a/server/channelserver/handlers_cast_binary.go b/server/channelserver/handlers_cast_binary.go index 4f8126aa7..ecdf09d79 100644 --- a/server/channelserver/handlers_cast_binary.go +++ b/server/channelserver/handlers_cast_binary.go @@ -188,7 +188,7 @@ func parseChatCommand(s *Session, command string) { } temp = &mhfpacket.MsgSysDeleteObject{ObjID: object.id} deleteNotif.WriteUint16(uint16(temp.Opcode())) - temp.Build(deleteNotif, s.clientContext) + temp.Build(deleteNotif) } for _, session := range s.server.sessions { if s == session { @@ -196,7 +196,7 @@ func parseChatCommand(s *Session, command string) { } temp = &mhfpacket.MsgSysDeleteUser{CharID: session.charID} deleteNotif.WriteUint16(uint16(temp.Opcode())) - temp.Build(deleteNotif, s.clientContext) + temp.Build(deleteNotif) } deleteNotif.WriteUint16(uint16(network.MSG_SYS_END)) s.QueueSend(deleteNotif.Data()) @@ -208,14 +208,14 @@ func parseChatCommand(s *Session, command string) { } temp = &mhfpacket.MsgSysInsertUser{CharID: session.charID} reloadNotif.WriteUint16(uint16(temp.Opcode())) - temp.Build(reloadNotif, s.clientContext) + temp.Build(reloadNotif) for i := 0; i < 3; i++ { temp = &mhfpacket.MsgSysNotifyUserBinary{ CharID: session.charID, BinaryType: uint8(i + 1), } reloadNotif.WriteUint16(uint16(temp.Opcode())) - temp.Build(reloadNotif, s.clientContext) + temp.Build(reloadNotif) } } for _, obj := range s.stage.objects { @@ -231,7 +231,7 @@ func parseChatCommand(s *Session, command string) { OwnerCharID: obj.ownerCharID, } reloadNotif.WriteUint16(uint16(temp.Opcode())) - temp.Build(reloadNotif, s.clientContext) + temp.Build(reloadNotif) } reloadNotif.WriteUint16(uint16(network.MSG_SYS_END)) s.QueueSend(reloadNotif.Data()) diff --git a/server/channelserver/handlers_mail.go b/server/channelserver/handlers_mail.go index 89ce5d3f4..d17dca7b4 100644 --- a/server/channelserver/handlers_mail.go +++ b/server/channelserver/handlers_mail.go @@ -184,7 +184,7 @@ func SendMailNotification(s *Session, m *Mail, recipient *Session) { RawDataPayload: bf.Data(), } - castedBinary.Build(bf, s.clientContext) + castedBinary.Build(bf) recipient.QueueSendMHF(castedBinary) } diff --git a/server/channelserver/handlers_register.go b/server/channelserver/handlers_register.go index d9f08e2a2..a7f1509f2 100644 --- a/server/channelserver/handlers_register.go +++ b/server/channelserver/handlers_register.go @@ -119,13 +119,13 @@ func (s *Session) notifyRavi() { raviNotif := byteframe.NewByteFrame() temp = &mhfpacket.MsgSysNotifyRegister{RegisterID: 0x40000} raviNotif.WriteUint16(uint16(temp.Opcode())) - temp.Build(raviNotif, s.clientContext) + temp.Build(raviNotif) temp = &mhfpacket.MsgSysNotifyRegister{RegisterID: 0x50000} raviNotif.WriteUint16(uint16(temp.Opcode())) - temp.Build(raviNotif, s.clientContext) + temp.Build(raviNotif) temp = &mhfpacket.MsgSysNotifyRegister{RegisterID: 0x60000} raviNotif.WriteUint16(uint16(temp.Opcode())) - temp.Build(raviNotif, s.clientContext) + temp.Build(raviNotif) raviNotif.WriteUint16(0x0010) // End it. if s.server.erupeConfig.GameplayOptions.LowLatencyRaviente { for session := range sema.clients { diff --git a/server/channelserver/handlers_stage.go b/server/channelserver/handlers_stage.go index 760b2ada8..0813e7096 100644 --- a/server/channelserver/handlers_stage.go +++ b/server/channelserver/handlers_stage.go @@ -78,14 +78,14 @@ func doStageTransfer(s *Session, ackHandle uint32, stageID string) { } temp = &mhfpacket.MsgSysInsertUser{CharID: session.charID} newNotif.WriteUint16(uint16(temp.Opcode())) - temp.Build(newNotif, s.clientContext) + temp.Build(newNotif) for i := 0; i < 3; i++ { temp = &mhfpacket.MsgSysNotifyUserBinary{ CharID: session.charID, BinaryType: uint8(i + 1), } newNotif.WriteUint16(uint16(temp.Opcode())) - temp.Build(newNotif, s.clientContext) + temp.Build(newNotif) } } } @@ -108,7 +108,7 @@ func doStageTransfer(s *Session, ackHandle uint32, stageID string) { OwnerCharID: obj.ownerCharID, } newNotif.WriteUint16(uint16(temp.Opcode())) - temp.Build(newNotif, s.clientContext) + temp.Build(newNotif) } s.stage.RUnlock() } diff --git a/server/channelserver/sys_channel_server.go b/server/channelserver/sys_channel_server.go index a19b09628..bf007811a 100644 --- a/server/channelserver/sys_channel_server.go +++ b/server/channelserver/sys_channel_server.go @@ -294,7 +294,7 @@ func (s *Server) BroadcastMHF(pkt mhfpacket.MHFPacket, ignoredSession *Session) bf.WriteUint16(uint16(pkt.Opcode())) // Build the packet onto the byteframe. - pkt.Build(bf, session.clientContext) + pkt.Build(bf) // Enqueue in a non-blocking way that drops the packet if the connections send buffer channel is full. session.QueueSendNonBlocking(bf.Data()) diff --git a/server/channelserver/sys_semaphore.go b/server/channelserver/sys_semaphore.go index b40330371..56dabb277 100644 --- a/server/channelserver/sys_semaphore.go +++ b/server/channelserver/sys_semaphore.go @@ -51,7 +51,7 @@ func (s *Semaphore) BroadcastMHF(pkt mhfpacket.MHFPacket, ignoredSession *Sessio bf.WriteUint16(uint16(pkt.Opcode())) // Build the packet onto the byteframe. - pkt.Build(bf, session.clientContext) + pkt.Build(bf) // Enqueue in a non-blocking way that drops the packet if the connections send buffer channel is full. session.QueueSendNonBlocking(bf.Data()) diff --git a/server/channelserver/sys_session.go b/server/channelserver/sys_session.go index 0f04d8900..48fa947de 100644 --- a/server/channelserver/sys_session.go +++ b/server/channelserver/sys_session.go @@ -13,7 +13,6 @@ import ( "time" "erupe-ce/network" - "erupe-ce/network/clientctx" "erupe-ce/network/mhfpacket" "erupe-ce/utils/byteframe" "erupe-ce/utils/stringstack" @@ -29,13 +28,12 @@ type packet struct { // Session holds state for the channel server connection. type Session struct { sync.Mutex - logger *zap.Logger - server *Server - rawConn net.Conn - cryptConn *network.CryptConn - sendPackets chan packet - clientContext *clientctx.ClientContext - lastPacket time.Time + logger *zap.Logger + server *Server + rawConn net.Conn + cryptConn *network.CryptConn + sendPackets chan packet + lastPacket time.Time objectIndex uint16 userEnteredStage bool // If the user has entered a stage before @@ -79,7 +77,6 @@ func NewSession(server *Server, conn net.Conn) *Session { rawConn: conn, cryptConn: network.NewCryptConn(conn), sendPackets: make(chan packet, 20), - clientContext: &clientctx.ClientContext{}, // Unused lastPacket: time.Now(), sessionStart: gametime.TimeAdjusted().Unix(), stageMoveStack: stringstack.New(), @@ -138,7 +135,7 @@ func (s *Session) QueueSendMHF(pkt mhfpacket.MHFPacket) { bf.WriteUint16(uint16(pkt.Opcode())) // Build the packet onto the byteframe. - pkt.Build(bf, s.clientContext) + pkt.Build(bf) // Queue it. s.QueueSend(bf.Data()) @@ -231,7 +228,7 @@ func (s *Session) handlePacketGroup(pktGroup []byte) { return } // Parse the packet. - err := mhfPkt.Parse(bf, s.clientContext) + err := mhfPkt.Parse(bf) if err != nil { fmt.Printf("\n!!! [%s] %s NOT IMPLEMENTED !!! \n\n\n", s.Name, opcode) return diff --git a/server/channelserver/sys_stage.go b/server/channelserver/sys_stage.go index a6b7ba375..7b4192b42 100644 --- a/server/channelserver/sys_stage.go +++ b/server/channelserver/sys_stage.go @@ -78,7 +78,7 @@ func (s *Stage) BroadcastMHF(pkt mhfpacket.MHFPacket, ignoredSession *Session) { bf.WriteUint16(uint16(pkt.Opcode())) // Build the packet onto the byteframe. - pkt.Build(bf, session.clientContext) + pkt.Build(bf) // Enqueue in a non-blocking way that drops the packet if the connections send buffer channel is full. session.QueueSendNonBlocking(bf.Data()) diff --git a/server/entranceserver/make_resp.go b/server/entranceserver/make_resp.go index 68086a017..36f37744c 100644 --- a/server/entranceserver/make_resp.go +++ b/server/entranceserver/make_resp.go @@ -4,12 +4,12 @@ import ( "encoding/binary" "encoding/hex" _config "erupe-ce/config" + "erupe-ce/network/crypto/bin8" + "erupe-ce/utils/byteframe" "erupe-ce/utils/gametime" "erupe-ce/utils/stringsupport" "fmt" "net" - - "erupe-ce/utils/byteframe" ) func encodeServerInfo(config *_config.Config, s *Server, local bool) []byte { @@ -96,7 +96,7 @@ func makeHeader(data []byte, respType string, entryCount uint16, key byte) []byt bf.WriteUint16(entryCount) bf.WriteUint16(uint16(len(data))) if len(data) > 0 { - bf.WriteUint32(CalcSum32(data)) + bf.WriteUint32(bin8.CalcSum32(data)) bf.WriteBytes(data) } @@ -104,7 +104,7 @@ func makeHeader(data []byte, respType string, entryCount uint16, key byte) []byt bf = byteframe.NewByteFrame() bf.WriteUint8(key) - bf.WriteBytes(EncryptBin8(dataToEncrypt, key)) + bf.WriteBytes(bin8.EncryptBin8(dataToEncrypt, key)) return bf.Data() }