diff --git a/network/mhfpacket/msg_mhf_acquire_guild_tresure_souvenir.go b/network/mhfpacket/msg_mhf_acquire_guild_tresure_souvenir.go index 46231ab01..eefc8153d 100644 --- a/network/mhfpacket/msg_mhf_acquire_guild_tresure_souvenir.go +++ b/network/mhfpacket/msg_mhf_acquire_guild_tresure_souvenir.go @@ -6,7 +6,9 @@ import ( ) // MsgMhfAcquireGuildTresureSouvenir represents the MSG_MHF_ACQUIRE_GUILD_TRESURE_SOUVENIR -type MsgMhfAcquireGuildTresureSouvenir struct{} +type MsgMhfAcquireGuildTresureSouvenir struct { + AckHandle uint32 +} // Opcode returns the ID associated with this packet type. func (m *MsgMhfAcquireGuildTresureSouvenir) Opcode() network.PacketID { @@ -15,10 +17,11 @@ func (m *MsgMhfAcquireGuildTresureSouvenir) Opcode() network.PacketID { // Parse parses the packet from binary func (m *MsgMhfAcquireGuildTresureSouvenir) Parse(bf *byteframe.ByteFrame) error { - panic("Not implemented") + m.AckHandle = bf.ReadUint32() + return nil } // Build builds a binary packet from the current data. func (m *MsgMhfAcquireGuildTresureSouvenir) Build(bf *byteframe.ByteFrame) error { panic("Not implemented") -} \ No newline at end of file +} diff --git a/network/mhfpacket/msg_mhf_create_mercenary.go b/network/mhfpacket/msg_mhf_create_mercenary.go index 49680c7b2..27a5e78e5 100644 --- a/network/mhfpacket/msg_mhf_create_mercenary.go +++ b/network/mhfpacket/msg_mhf_create_mercenary.go @@ -6,7 +6,9 @@ import ( ) // MsgMhfCreateMercenary represents the MSG_MHF_CREATE_MERCENARY -type MsgMhfCreateMercenary struct{} +type MsgMhfCreateMercenary struct { + AckHandle uint32 +} // Opcode returns the ID associated with this packet type. func (m *MsgMhfCreateMercenary) Opcode() network.PacketID { @@ -15,10 +17,11 @@ func (m *MsgMhfCreateMercenary) Opcode() network.PacketID { // Parse parses the packet from binary func (m *MsgMhfCreateMercenary) Parse(bf *byteframe.ByteFrame) error { - panic("Not implemented") + m.AckHandle = bf.ReadUint32() + return nil } // Build builds a binary packet from the current data. func (m *MsgMhfCreateMercenary) Build(bf *byteframe.ByteFrame) error { panic("Not implemented") -} \ No newline at end of file +} diff --git a/network/mhfpacket/msg_mhf_enumerate_festa_intermediate_prize.go b/network/mhfpacket/msg_mhf_enumerate_festa_intermediate_prize.go index dad4cc22f..c5fcdfa1d 100644 --- a/network/mhfpacket/msg_mhf_enumerate_festa_intermediate_prize.go +++ b/network/mhfpacket/msg_mhf_enumerate_festa_intermediate_prize.go @@ -6,7 +6,9 @@ import ( ) // MsgMhfEnumerateFestaIntermediatePrize represents the MSG_MHF_ENUMERATE_FESTA_INTERMEDIATE_PRIZE -type MsgMhfEnumerateFestaIntermediatePrize struct{} +type MsgMhfEnumerateFestaIntermediatePrize struct { + AckHandle uint32 +} // Opcode returns the ID associated with this packet type. func (m *MsgMhfEnumerateFestaIntermediatePrize) Opcode() network.PacketID { @@ -15,10 +17,11 @@ func (m *MsgMhfEnumerateFestaIntermediatePrize) Opcode() network.PacketID { // Parse parses the packet from binary func (m *MsgMhfEnumerateFestaIntermediatePrize) Parse(bf *byteframe.ByteFrame) error { - panic("Not implemented") + m.AckHandle = bf.ReadUint32() + return nil } // Build builds a binary packet from the current data. func (m *MsgMhfEnumerateFestaIntermediatePrize) Build(bf *byteframe.ByteFrame) error { panic("Not implemented") -} \ No newline at end of file +} diff --git a/network/mhfpacket/msg_mhf_enumerate_festa_personal_prize.go b/network/mhfpacket/msg_mhf_enumerate_festa_personal_prize.go index fab417f07..5de7a5ab3 100644 --- a/network/mhfpacket/msg_mhf_enumerate_festa_personal_prize.go +++ b/network/mhfpacket/msg_mhf_enumerate_festa_personal_prize.go @@ -6,7 +6,9 @@ import ( ) // MsgMhfEnumerateFestaPersonalPrize represents the MSG_MHF_ENUMERATE_FESTA_PERSONAL_PRIZE -type MsgMhfEnumerateFestaPersonalPrize struct{} +type MsgMhfEnumerateFestaPersonalPrize struct { + AckHandle uint32 +} // Opcode returns the ID associated with this packet type. func (m *MsgMhfEnumerateFestaPersonalPrize) Opcode() network.PacketID { @@ -15,10 +17,11 @@ func (m *MsgMhfEnumerateFestaPersonalPrize) Opcode() network.PacketID { // Parse parses the packet from binary func (m *MsgMhfEnumerateFestaPersonalPrize) Parse(bf *byteframe.ByteFrame) error { - panic("Not implemented") + m.AckHandle = bf.ReadUint32() + return nil } // Build builds a binary packet from the current data. func (m *MsgMhfEnumerateFestaPersonalPrize) Build(bf *byteframe.ByteFrame) error { panic("Not implemented") -} \ No newline at end of file +} diff --git a/network/mhfpacket/msg_mhf_enumerate_mercenary_log.go b/network/mhfpacket/msg_mhf_enumerate_mercenary_log.go index 9a74d6f37..c492bb91d 100644 --- a/network/mhfpacket/msg_mhf_enumerate_mercenary_log.go +++ b/network/mhfpacket/msg_mhf_enumerate_mercenary_log.go @@ -6,7 +6,9 @@ import ( ) // MsgMhfEnumerateMercenaryLog represents the MSG_MHF_ENUMERATE_MERCENARY_LOG -type MsgMhfEnumerateMercenaryLog struct{} +type MsgMhfEnumerateMercenaryLog struct { + AckHandle uint32 +} // Opcode returns the ID associated with this packet type. func (m *MsgMhfEnumerateMercenaryLog) Opcode() network.PacketID { @@ -15,10 +17,11 @@ func (m *MsgMhfEnumerateMercenaryLog) Opcode() network.PacketID { // Parse parses the packet from binary func (m *MsgMhfEnumerateMercenaryLog) Parse(bf *byteframe.ByteFrame) error { - panic("Not implemented") + m.AckHandle = bf.ReadUint32() + return nil } // Build builds a binary packet from the current data. func (m *MsgMhfEnumerateMercenaryLog) Build(bf *byteframe.ByteFrame) error { panic("Not implemented") -} \ No newline at end of file +} diff --git a/network/mhfpacket/msg_mhf_generate_ud_guild_map.go b/network/mhfpacket/msg_mhf_generate_ud_guild_map.go index 3bd9ef39c..97ea0c7c0 100644 --- a/network/mhfpacket/msg_mhf_generate_ud_guild_map.go +++ b/network/mhfpacket/msg_mhf_generate_ud_guild_map.go @@ -6,7 +6,9 @@ import ( ) // MsgMhfGenerateUdGuildMap represents the MSG_MHF_GENERATE_UD_GUILD_MAP -type MsgMhfGenerateUdGuildMap struct{} +type MsgMhfGenerateUdGuildMap struct { + AckHandle uint32 +} // Opcode returns the ID associated with this packet type. func (m *MsgMhfGenerateUdGuildMap) Opcode() network.PacketID { @@ -15,10 +17,11 @@ func (m *MsgMhfGenerateUdGuildMap) Opcode() network.PacketID { // Parse parses the packet from binary func (m *MsgMhfGenerateUdGuildMap) Parse(bf *byteframe.ByteFrame) error { - panic("Not implemented") + m.AckHandle = bf.ReadUint32() + return nil } // Build builds a binary packet from the current data. func (m *MsgMhfGenerateUdGuildMap) Build(bf *byteframe.ByteFrame) error { panic("Not implemented") -} \ No newline at end of file +} diff --git a/network/mhfpacket/msg_mhf_get_cafe_duration.go b/network/mhfpacket/msg_mhf_get_cafe_duration.go index 12c88b1ea..54dbf5324 100644 --- a/network/mhfpacket/msg_mhf_get_cafe_duration.go +++ b/network/mhfpacket/msg_mhf_get_cafe_duration.go @@ -6,7 +6,9 @@ import ( ) // MsgMhfGetCafeDuration represents the MSG_MHF_GET_CAFE_DURATION -type MsgMhfGetCafeDuration struct{} +type MsgMhfGetCafeDuration struct { + AckHandle uint32 +} // Opcode returns the ID associated with this packet type. func (m *MsgMhfGetCafeDuration) Opcode() network.PacketID { @@ -15,10 +17,11 @@ func (m *MsgMhfGetCafeDuration) Opcode() network.PacketID { // Parse parses the packet from binary func (m *MsgMhfGetCafeDuration) Parse(bf *byteframe.ByteFrame) error { - panic("Not implemented") + m.AckHandle = bf.ReadUint32() + return nil } // Build builds a binary packet from the current data. func (m *MsgMhfGetCafeDuration) Build(bf *byteframe.ByteFrame) error { panic("Not implemented") -} \ No newline at end of file +} 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 d735cf2c1..808dcefcc 100644 --- a/network/mhfpacket/msg_mhf_get_cafe_duration_bonus_info.go +++ b/network/mhfpacket/msg_mhf_get_cafe_duration_bonus_info.go @@ -6,7 +6,9 @@ import ( ) // MsgMhfGetCafeDurationBonusInfo represents the MSG_MHF_GET_CAFE_DURATION_BONUS_INFO -type MsgMhfGetCafeDurationBonusInfo struct{} +type MsgMhfGetCafeDurationBonusInfo struct { + AckHandle uint32 +} // Opcode returns the ID associated with this packet type. func (m *MsgMhfGetCafeDurationBonusInfo) Opcode() network.PacketID { @@ -15,10 +17,11 @@ func (m *MsgMhfGetCafeDurationBonusInfo) Opcode() network.PacketID { // Parse parses the packet from binary func (m *MsgMhfGetCafeDurationBonusInfo) Parse(bf *byteframe.ByteFrame) error { - panic("Not implemented") + m.AckHandle = bf.ReadUint32() + return nil } // Build builds a binary packet from the current data. func (m *MsgMhfGetCafeDurationBonusInfo) Build(bf *byteframe.ByteFrame) error { panic("Not implemented") -} \ No newline at end of file +} diff --git a/network/mhfpacket/msg_mhf_get_equip_skin_hist.go b/network/mhfpacket/msg_mhf_get_equip_skin_hist.go index fd761e3a9..722de45b6 100644 --- a/network/mhfpacket/msg_mhf_get_equip_skin_hist.go +++ b/network/mhfpacket/msg_mhf_get_equip_skin_hist.go @@ -6,7 +6,9 @@ import ( ) // MsgMhfGetEquipSkinHist represents the MSG_MHF_GET_EQUIP_SKIN_HIST -type MsgMhfGetEquipSkinHist struct{} +type MsgMhfGetEquipSkinHist struct { + AckHandle uint32 +} // Opcode returns the ID associated with this packet type. func (m *MsgMhfGetEquipSkinHist) Opcode() network.PacketID { @@ -15,10 +17,11 @@ func (m *MsgMhfGetEquipSkinHist) Opcode() network.PacketID { // Parse parses the packet from binary func (m *MsgMhfGetEquipSkinHist) Parse(bf *byteframe.ByteFrame) error { - panic("Not implemented") + m.AckHandle = bf.ReadUint32() + return nil } // Build builds a binary packet from the current data. func (m *MsgMhfGetEquipSkinHist) Build(bf *byteframe.ByteFrame) error { panic("Not implemented") -} \ No newline at end of file +} diff --git a/network/mhfpacket/msg_mhf_get_fpoint_exchange_list.go b/network/mhfpacket/msg_mhf_get_fpoint_exchange_list.go index bdecacf70..407b1a3a9 100644 --- a/network/mhfpacket/msg_mhf_get_fpoint_exchange_list.go +++ b/network/mhfpacket/msg_mhf_get_fpoint_exchange_list.go @@ -6,7 +6,9 @@ import ( ) // MsgMhfGetFpointExchangeList represents the MSG_MHF_GET_FPOINT_EXCHANGE_LIST -type MsgMhfGetFpointExchangeList struct{} +type MsgMhfGetFpointExchangeList struct { + AckHandle uint32 +} // Opcode returns the ID associated with this packet type. func (m *MsgMhfGetFpointExchangeList) Opcode() network.PacketID { @@ -15,10 +17,11 @@ func (m *MsgMhfGetFpointExchangeList) Opcode() network.PacketID { // Parse parses the packet from binary func (m *MsgMhfGetFpointExchangeList) Parse(bf *byteframe.ByteFrame) error { - panic("Not implemented") + m.AckHandle = bf.ReadUint32() + return nil } // Build builds a binary packet from the current data. func (m *MsgMhfGetFpointExchangeList) Build(bf *byteframe.ByteFrame) error { panic("Not implemented") -} \ No newline at end of file +} diff --git a/network/mhfpacket/msg_mhf_get_guild_manage_right.go b/network/mhfpacket/msg_mhf_get_guild_manage_right.go index 5ff2bd42b..ee4ac9973 100644 --- a/network/mhfpacket/msg_mhf_get_guild_manage_right.go +++ b/network/mhfpacket/msg_mhf_get_guild_manage_right.go @@ -6,7 +6,9 @@ import ( ) // MsgMhfGetGuildManageRight represents the MSG_MHF_GET_GUILD_MANAGE_RIGHT -type MsgMhfGetGuildManageRight struct{} +type MsgMhfGetGuildManageRight struct { + AckHandle uint32 +} // Opcode returns the ID associated with this packet type. func (m *MsgMhfGetGuildManageRight) Opcode() network.PacketID { @@ -15,10 +17,11 @@ func (m *MsgMhfGetGuildManageRight) Opcode() network.PacketID { // Parse parses the packet from binary func (m *MsgMhfGetGuildManageRight) Parse(bf *byteframe.ByteFrame) error { - panic("Not implemented") + m.AckHandle = bf.ReadUint32() + return nil } // Build builds a binary packet from the current data. func (m *MsgMhfGetGuildManageRight) Build(bf *byteframe.ByteFrame) error { panic("Not implemented") -} \ No newline at end of file +} diff --git a/network/mhfpacket/msg_mhf_get_guild_mission_list.go b/network/mhfpacket/msg_mhf_get_guild_mission_list.go index f4852619a..716e379ec 100644 --- a/network/mhfpacket/msg_mhf_get_guild_mission_list.go +++ b/network/mhfpacket/msg_mhf_get_guild_mission_list.go @@ -6,7 +6,9 @@ import ( ) // MsgMhfGetGuildMissionList represents the MSG_MHF_GET_GUILD_MISSION_LIST -type MsgMhfGetGuildMissionList struct{} +type MsgMhfGetGuildMissionList struct { + AckHandle uint32 +} // Opcode returns the ID associated with this packet type. func (m *MsgMhfGetGuildMissionList) Opcode() network.PacketID { @@ -15,10 +17,11 @@ func (m *MsgMhfGetGuildMissionList) Opcode() network.PacketID { // Parse parses the packet from binary func (m *MsgMhfGetGuildMissionList) Parse(bf *byteframe.ByteFrame) error { - panic("Not implemented") + m.AckHandle = bf.ReadUint32() + return nil } // Build builds a binary packet from the current data. func (m *MsgMhfGetGuildMissionList) Build(bf *byteframe.ByteFrame) error { panic("Not implemented") -} \ No newline at end of file +} diff --git a/network/mhfpacket/msg_mhf_get_guild_mission_record.go b/network/mhfpacket/msg_mhf_get_guild_mission_record.go index 7845d79a7..af55e3e7f 100644 --- a/network/mhfpacket/msg_mhf_get_guild_mission_record.go +++ b/network/mhfpacket/msg_mhf_get_guild_mission_record.go @@ -6,7 +6,9 @@ import ( ) // MsgMhfGetGuildMissionRecord represents the MSG_MHF_GET_GUILD_MISSION_RECORD -type MsgMhfGetGuildMissionRecord struct{} +type MsgMhfGetGuildMissionRecord struct { + AckHandle uint32 +} // Opcode returns the ID associated with this packet type. func (m *MsgMhfGetGuildMissionRecord) Opcode() network.PacketID { @@ -15,10 +17,11 @@ func (m *MsgMhfGetGuildMissionRecord) Opcode() network.PacketID { // Parse parses the packet from binary func (m *MsgMhfGetGuildMissionRecord) Parse(bf *byteframe.ByteFrame) error { - panic("Not implemented") + m.AckHandle = bf.ReadUint32() + return nil } // Build builds a binary packet from the current data. func (m *MsgMhfGetGuildMissionRecord) Build(bf *byteframe.ByteFrame) error { panic("Not implemented") -} \ No newline at end of file +} diff --git a/network/mhfpacket/msg_mhf_get_guild_scout_list.go b/network/mhfpacket/msg_mhf_get_guild_scout_list.go index a490552a0..e10e52f2c 100644 --- a/network/mhfpacket/msg_mhf_get_guild_scout_list.go +++ b/network/mhfpacket/msg_mhf_get_guild_scout_list.go @@ -6,7 +6,9 @@ import ( ) // MsgMhfGetGuildScoutList represents the MSG_MHF_GET_GUILD_SCOUT_LIST -type MsgMhfGetGuildScoutList struct{} +type MsgMhfGetGuildScoutList struct { + AckHandle uint32 +} // Opcode returns the ID associated with this packet type. func (m *MsgMhfGetGuildScoutList) Opcode() network.PacketID { @@ -15,10 +17,11 @@ func (m *MsgMhfGetGuildScoutList) Opcode() network.PacketID { // Parse parses the packet from binary func (m *MsgMhfGetGuildScoutList) Parse(bf *byteframe.ByteFrame) error { - panic("Not implemented") + m.AckHandle = bf.ReadUint32() + return nil } // Build builds a binary packet from the current data. func (m *MsgMhfGetGuildScoutList) Build(bf *byteframe.ByteFrame) error { panic("Not implemented") -} \ No newline at end of file +} diff --git a/network/mhfpacket/msg_mhf_get_guild_tresure_souvenir.go b/network/mhfpacket/msg_mhf_get_guild_tresure_souvenir.go index e175b6c41..c8de12b59 100644 --- a/network/mhfpacket/msg_mhf_get_guild_tresure_souvenir.go +++ b/network/mhfpacket/msg_mhf_get_guild_tresure_souvenir.go @@ -6,7 +6,9 @@ import ( ) // MsgMhfGetGuildTresureSouvenir represents the MSG_MHF_GET_GUILD_TRESURE_SOUVENIR -type MsgMhfGetGuildTresureSouvenir struct{} +type MsgMhfGetGuildTresureSouvenir struct { + AckHandle uint32 +} // Opcode returns the ID associated with this packet type. func (m *MsgMhfGetGuildTresureSouvenir) Opcode() network.PacketID { @@ -15,10 +17,11 @@ func (m *MsgMhfGetGuildTresureSouvenir) Opcode() network.PacketID { // Parse parses the packet from binary func (m *MsgMhfGetGuildTresureSouvenir) Parse(bf *byteframe.ByteFrame) error { - panic("Not implemented") + m.AckHandle = bf.ReadUint32() + return nil } // Build builds a binary packet from the current data. func (m *MsgMhfGetGuildTresureSouvenir) Build(bf *byteframe.ByteFrame) error { panic("Not implemented") -} \ No newline at end of file +} 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 d14ecb68b..97afb93b2 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 @@ -6,7 +6,9 @@ import ( ) // MsgMhfGetGuildWeeklyBonusActiveCount represents the MSG_MHF_GET_GUILD_WEEKLY_BONUS_ACTIVE_COUNT -type MsgMhfGetGuildWeeklyBonusActiveCount struct{} +type MsgMhfGetGuildWeeklyBonusActiveCount struct { + AckHandle uint32 +} // Opcode returns the ID associated with this packet type. func (m *MsgMhfGetGuildWeeklyBonusActiveCount) Opcode() network.PacketID { @@ -15,10 +17,11 @@ func (m *MsgMhfGetGuildWeeklyBonusActiveCount) Opcode() network.PacketID { // Parse parses the packet from binary func (m *MsgMhfGetGuildWeeklyBonusActiveCount) Parse(bf *byteframe.ByteFrame) error { - panic("Not implemented") + m.AckHandle = bf.ReadUint32() + return nil } // Build builds a binary packet from the current data. func (m *MsgMhfGetGuildWeeklyBonusActiveCount) Build(bf *byteframe.ByteFrame) error { panic("Not implemented") -} \ No newline at end of file +} 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 11920d74b..d499a1318 100644 --- a/network/mhfpacket/msg_mhf_get_guild_weekly_bonus_master.go +++ b/network/mhfpacket/msg_mhf_get_guild_weekly_bonus_master.go @@ -6,7 +6,9 @@ import ( ) // MsgMhfGetGuildWeeklyBonusMaster represents the MSG_MHF_GET_GUILD_WEEKLY_BONUS_MASTER -type MsgMhfGetGuildWeeklyBonusMaster struct{} +type MsgMhfGetGuildWeeklyBonusMaster struct { + AckHandle uint32 +} // Opcode returns the ID associated with this packet type. func (m *MsgMhfGetGuildWeeklyBonusMaster) Opcode() network.PacketID { @@ -15,10 +17,11 @@ func (m *MsgMhfGetGuildWeeklyBonusMaster) Opcode() network.PacketID { // Parse parses the packet from binary func (m *MsgMhfGetGuildWeeklyBonusMaster) Parse(bf *byteframe.ByteFrame) error { - panic("Not implemented") + m.AckHandle = bf.ReadUint32() + return nil } // Build builds a binary packet from the current data. func (m *MsgMhfGetGuildWeeklyBonusMaster) Build(bf *byteframe.ByteFrame) error { panic("Not implemented") -} \ No newline at end of file +} diff --git a/network/mhfpacket/msg_mhf_get_kiju_info.go b/network/mhfpacket/msg_mhf_get_kiju_info.go index 74024f51c..defdf6319 100644 --- a/network/mhfpacket/msg_mhf_get_kiju_info.go +++ b/network/mhfpacket/msg_mhf_get_kiju_info.go @@ -6,7 +6,9 @@ import ( ) // MsgMhfGetKijuInfo represents the MSG_MHF_GET_KIJU_INFO -type MsgMhfGetKijuInfo struct{} +type MsgMhfGetKijuInfo struct { + AckHandle uint32 +} // Opcode returns the ID associated with this packet type. func (m *MsgMhfGetKijuInfo) Opcode() network.PacketID { @@ -15,10 +17,11 @@ func (m *MsgMhfGetKijuInfo) Opcode() network.PacketID { // Parse parses the packet from binary func (m *MsgMhfGetKijuInfo) Parse(bf *byteframe.ByteFrame) error { - panic("Not implemented") + m.AckHandle = bf.ReadUint32() + return nil } // Build builds a binary packet from the current data. func (m *MsgMhfGetKijuInfo) Build(bf *byteframe.ByteFrame) error { panic("Not implemented") -} \ No newline at end of file +} diff --git a/network/mhfpacket/msg_mhf_get_reject_guild_scout.go b/network/mhfpacket/msg_mhf_get_reject_guild_scout.go index e70b7fb23..5ffecb94c 100644 --- a/network/mhfpacket/msg_mhf_get_reject_guild_scout.go +++ b/network/mhfpacket/msg_mhf_get_reject_guild_scout.go @@ -6,7 +6,9 @@ import ( ) // MsgMhfGetRejectGuildScout represents the MSG_MHF_GET_REJECT_GUILD_SCOUT -type MsgMhfGetRejectGuildScout struct{} +type MsgMhfGetRejectGuildScout struct { + AckHandle uint32 +} // Opcode returns the ID associated with this packet type. func (m *MsgMhfGetRejectGuildScout) Opcode() network.PacketID { @@ -15,10 +17,11 @@ func (m *MsgMhfGetRejectGuildScout) Opcode() network.PacketID { // Parse parses the packet from binary func (m *MsgMhfGetRejectGuildScout) Parse(bf *byteframe.ByteFrame) error { - panic("Not implemented") + m.AckHandle = bf.ReadUint32() + return nil } // Build builds a binary packet from the current data. func (m *MsgMhfGetRejectGuildScout) Build(bf *byteframe.ByteFrame) error { panic("Not implemented") -} \ No newline at end of file +} diff --git a/network/mhfpacket/msg_mhf_get_reward_song.go b/network/mhfpacket/msg_mhf_get_reward_song.go index f7805b203..18b1258a4 100644 --- a/network/mhfpacket/msg_mhf_get_reward_song.go +++ b/network/mhfpacket/msg_mhf_get_reward_song.go @@ -6,7 +6,9 @@ import ( ) // MsgMhfGetRewardSong represents the MSG_MHF_GET_REWARD_SONG -type MsgMhfGetRewardSong struct{} +type MsgMhfGetRewardSong struct { + AckHandle uint32 +} // Opcode returns the ID associated with this packet type. func (m *MsgMhfGetRewardSong) Opcode() network.PacketID { @@ -15,10 +17,11 @@ func (m *MsgMhfGetRewardSong) Opcode() network.PacketID { // Parse parses the packet from binary func (m *MsgMhfGetRewardSong) Parse(bf *byteframe.ByteFrame) error { - panic("Not implemented") + m.AckHandle = bf.ReadUint32() + return nil } // Build builds a binary packet from the current data. func (m *MsgMhfGetRewardSong) Build(bf *byteframe.ByteFrame) error { panic("Not implemented") -} \ No newline at end of file +} diff --git a/network/mhfpacket/msg_mhf_get_trend_weapon.go b/network/mhfpacket/msg_mhf_get_trend_weapon.go index 91204ffa2..28b135f44 100644 --- a/network/mhfpacket/msg_mhf_get_trend_weapon.go +++ b/network/mhfpacket/msg_mhf_get_trend_weapon.go @@ -6,7 +6,9 @@ import ( ) // MsgMhfGetTrendWeapon represents the MSG_MHF_GET_TREND_WEAPON -type MsgMhfGetTrendWeapon struct{} +type MsgMhfGetTrendWeapon struct { + AckHandle uint32 +} // Opcode returns the ID associated with this packet type. func (m *MsgMhfGetTrendWeapon) Opcode() network.PacketID { @@ -15,10 +17,11 @@ func (m *MsgMhfGetTrendWeapon) Opcode() network.PacketID { // Parse parses the packet from binary func (m *MsgMhfGetTrendWeapon) Parse(bf *byteframe.ByteFrame) error { - panic("Not implemented") + m.AckHandle = bf.ReadUint32() + return nil } // Build builds a binary packet from the current data. func (m *MsgMhfGetTrendWeapon) Build(bf *byteframe.ByteFrame) error { panic("Not implemented") -} \ No newline at end of file +} 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 a117eeae4..3fef1cf26 100644 --- a/network/mhfpacket/msg_mhf_get_ud_daily_present_list.go +++ b/network/mhfpacket/msg_mhf_get_ud_daily_present_list.go @@ -6,7 +6,9 @@ import ( ) // MsgMhfGetUdDailyPresentList represents the MSG_MHF_GET_UD_DAILY_PRESENT_LIST -type MsgMhfGetUdDailyPresentList struct{} +type MsgMhfGetUdDailyPresentList struct { + AckHandle uint32 +} // Opcode returns the ID associated with this packet type. func (m *MsgMhfGetUdDailyPresentList) Opcode() network.PacketID { @@ -15,10 +17,11 @@ func (m *MsgMhfGetUdDailyPresentList) Opcode() network.PacketID { // Parse parses the packet from binary func (m *MsgMhfGetUdDailyPresentList) Parse(bf *byteframe.ByteFrame) error { - panic("Not implemented") + m.AckHandle = bf.ReadUint32() + return nil } // Build builds a binary packet from the current data. func (m *MsgMhfGetUdDailyPresentList) Build(bf *byteframe.ByteFrame) error { panic("Not implemented") -} \ No newline at end of file +} 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 1df67d8b2..64f89c162 100644 --- a/network/mhfpacket/msg_mhf_get_ud_guild_map_info.go +++ b/network/mhfpacket/msg_mhf_get_ud_guild_map_info.go @@ -6,7 +6,9 @@ import ( ) // MsgMhfGetUdGuildMapInfo represents the MSG_MHF_GET_UD_GUILD_MAP_INFO -type MsgMhfGetUdGuildMapInfo struct{} +type MsgMhfGetUdGuildMapInfo struct { + AckHandle uint32 +} // Opcode returns the ID associated with this packet type. func (m *MsgMhfGetUdGuildMapInfo) Opcode() network.PacketID { @@ -15,10 +17,11 @@ func (m *MsgMhfGetUdGuildMapInfo) Opcode() network.PacketID { // Parse parses the packet from binary func (m *MsgMhfGetUdGuildMapInfo) Parse(bf *byteframe.ByteFrame) error { - panic("Not implemented") + m.AckHandle = bf.ReadUint32() + return nil } // Build builds a binary packet from the current data. func (m *MsgMhfGetUdGuildMapInfo) Build(bf *byteframe.ByteFrame) error { panic("Not implemented") -} \ No newline at end of file +} diff --git a/network/mhfpacket/msg_mhf_get_ud_my_point.go b/network/mhfpacket/msg_mhf_get_ud_my_point.go index b2cf286fd..4d0055190 100644 --- a/network/mhfpacket/msg_mhf_get_ud_my_point.go +++ b/network/mhfpacket/msg_mhf_get_ud_my_point.go @@ -6,7 +6,9 @@ import ( ) // MsgMhfGetUdMyPoint represents the MSG_MHF_GET_UD_MY_POINT -type MsgMhfGetUdMyPoint struct{} +type MsgMhfGetUdMyPoint struct { + AckHandle uint32 +} // Opcode returns the ID associated with this packet type. func (m *MsgMhfGetUdMyPoint) Opcode() network.PacketID { @@ -15,10 +17,11 @@ func (m *MsgMhfGetUdMyPoint) Opcode() network.PacketID { // Parse parses the packet from binary func (m *MsgMhfGetUdMyPoint) Parse(bf *byteframe.ByteFrame) error { - panic("Not implemented") + m.AckHandle = bf.ReadUint32() + return nil } // Build builds a binary packet from the current data. func (m *MsgMhfGetUdMyPoint) Build(bf *byteframe.ByteFrame) error { panic("Not implemented") -} \ No newline at end of file +} diff --git a/network/mhfpacket/msg_mhf_get_ud_my_ranking.go b/network/mhfpacket/msg_mhf_get_ud_my_ranking.go index 430f1f5aa..f10794f4a 100644 --- a/network/mhfpacket/msg_mhf_get_ud_my_ranking.go +++ b/network/mhfpacket/msg_mhf_get_ud_my_ranking.go @@ -6,7 +6,9 @@ import ( ) // MsgMhfGetUdMyRanking represents the MSG_MHF_GET_UD_MY_RANKING -type MsgMhfGetUdMyRanking struct{} +type MsgMhfGetUdMyRanking struct { + AckHandle uint32 +} // Opcode returns the ID associated with this packet type. func (m *MsgMhfGetUdMyRanking) Opcode() network.PacketID { @@ -15,10 +17,11 @@ func (m *MsgMhfGetUdMyRanking) Opcode() network.PacketID { // Parse parses the packet from binary func (m *MsgMhfGetUdMyRanking) Parse(bf *byteframe.ByteFrame) error { - panic("Not implemented") + m.AckHandle = bf.ReadUint32() + return nil } // Build builds a binary packet from the current data. func (m *MsgMhfGetUdMyRanking) Build(bf *byteframe.ByteFrame) error { panic("Not implemented") -} \ No newline at end of file +} 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 d5df545b7..3daf8abe7 100644 --- a/network/mhfpacket/msg_mhf_get_ud_norma_present_list.go +++ b/network/mhfpacket/msg_mhf_get_ud_norma_present_list.go @@ -6,7 +6,9 @@ import ( ) // MsgMhfGetUdNormaPresentList represents the MSG_MHF_GET_UD_NORMA_PRESENT_LIST -type MsgMhfGetUdNormaPresentList struct{} +type MsgMhfGetUdNormaPresentList struct { + AckHandle uint32 +} // Opcode returns the ID associated with this packet type. func (m *MsgMhfGetUdNormaPresentList) Opcode() network.PacketID { @@ -15,10 +17,11 @@ func (m *MsgMhfGetUdNormaPresentList) Opcode() network.PacketID { // Parse parses the packet from binary func (m *MsgMhfGetUdNormaPresentList) Parse(bf *byteframe.ByteFrame) error { - panic("Not implemented") + m.AckHandle = bf.ReadUint32() + return nil } // Build builds a binary packet from the current data. func (m *MsgMhfGetUdNormaPresentList) Build(bf *byteframe.ByteFrame) error { panic("Not implemented") -} \ No newline at end of file +} 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 60d2e51c0..d8caecfda 100644 --- a/network/mhfpacket/msg_mhf_get_ud_ranking_reward_list.go +++ b/network/mhfpacket/msg_mhf_get_ud_ranking_reward_list.go @@ -6,7 +6,9 @@ import ( ) // MsgMhfGetUdRankingRewardList represents the MSG_MHF_GET_UD_RANKING_REWARD_LIST -type MsgMhfGetUdRankingRewardList struct{} +type MsgMhfGetUdRankingRewardList struct { + AckHandle uint32 +} // Opcode returns the ID associated with this packet type. func (m *MsgMhfGetUdRankingRewardList) Opcode() network.PacketID { @@ -15,10 +17,11 @@ func (m *MsgMhfGetUdRankingRewardList) Opcode() network.PacketID { // Parse parses the packet from binary func (m *MsgMhfGetUdRankingRewardList) Parse(bf *byteframe.ByteFrame) error { - panic("Not implemented") + m.AckHandle = bf.ReadUint32() + return nil } // Build builds a binary packet from the current data. func (m *MsgMhfGetUdRankingRewardList) Build(bf *byteframe.ByteFrame) error { panic("Not implemented") -} \ No newline at end of file +} 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 a124e441a..9a073afdc 100644 --- a/network/mhfpacket/msg_mhf_get_ud_selected_color_info.go +++ b/network/mhfpacket/msg_mhf_get_ud_selected_color_info.go @@ -6,7 +6,9 @@ import ( ) // MsgMhfGetUdSelectedColorInfo represents the MSG_MHF_GET_UD_SELECTED_COLOR_INFO -type MsgMhfGetUdSelectedColorInfo struct{} +type MsgMhfGetUdSelectedColorInfo struct { + AckHandle uint32 +} // Opcode returns the ID associated with this packet type. func (m *MsgMhfGetUdSelectedColorInfo) Opcode() network.PacketID { @@ -15,10 +17,11 @@ func (m *MsgMhfGetUdSelectedColorInfo) Opcode() network.PacketID { // Parse parses the packet from binary func (m *MsgMhfGetUdSelectedColorInfo) Parse(bf *byteframe.ByteFrame) error { - panic("Not implemented") + m.AckHandle = bf.ReadUint32() + return nil } // Build builds a binary packet from the current data. func (m *MsgMhfGetUdSelectedColorInfo) Build(bf *byteframe.ByteFrame) error { panic("Not implemented") -} \ No newline at end of file +} diff --git a/network/mhfpacket/msg_mhf_get_ud_shop_coin.go b/network/mhfpacket/msg_mhf_get_ud_shop_coin.go index 450b68239..a1770f45a 100644 --- a/network/mhfpacket/msg_mhf_get_ud_shop_coin.go +++ b/network/mhfpacket/msg_mhf_get_ud_shop_coin.go @@ -6,7 +6,9 @@ import ( ) // MsgMhfGetUdShopCoin represents the MSG_MHF_GET_UD_SHOP_COIN -type MsgMhfGetUdShopCoin struct{} +type MsgMhfGetUdShopCoin struct { + AckHandle uint32 +} // Opcode returns the ID associated with this packet type. func (m *MsgMhfGetUdShopCoin) Opcode() network.PacketID { @@ -15,10 +17,11 @@ func (m *MsgMhfGetUdShopCoin) Opcode() network.PacketID { // Parse parses the packet from binary func (m *MsgMhfGetUdShopCoin) Parse(bf *byteframe.ByteFrame) error { - panic("Not implemented") + m.AckHandle = bf.ReadUint32() + return nil } // Build builds a binary packet from the current data. func (m *MsgMhfGetUdShopCoin) Build(bf *byteframe.ByteFrame) error { panic("Not implemented") -} \ No newline at end of file +} 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 ede4dcb0a..70aada196 100644 --- a/network/mhfpacket/msg_mhf_get_ud_tactics_bonus_quest.go +++ b/network/mhfpacket/msg_mhf_get_ud_tactics_bonus_quest.go @@ -6,7 +6,9 @@ import ( ) // MsgMhfGetUdTacticsBonusQuest represents the MSG_MHF_GET_UD_TACTICS_BONUS_QUEST -type MsgMhfGetUdTacticsBonusQuest struct{} +type MsgMhfGetUdTacticsBonusQuest struct { + AckHandle uint32 +} // Opcode returns the ID associated with this packet type. func (m *MsgMhfGetUdTacticsBonusQuest) Opcode() network.PacketID { @@ -15,10 +17,11 @@ func (m *MsgMhfGetUdTacticsBonusQuest) Opcode() network.PacketID { // Parse parses the packet from binary func (m *MsgMhfGetUdTacticsBonusQuest) Parse(bf *byteframe.ByteFrame) error { - panic("Not implemented") + m.AckHandle = bf.ReadUint32() + return nil } // Build builds a binary packet from the current data. func (m *MsgMhfGetUdTacticsBonusQuest) Build(bf *byteframe.ByteFrame) error { panic("Not implemented") -} \ No newline at end of file +} 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 bf08cf027..3bfcb60d8 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 @@ -6,7 +6,9 @@ import ( ) // MsgMhfGetUdTacticsFirstQuestBonus represents the MSG_MHF_GET_UD_TACTICS_FIRST_QUEST_BONUS -type MsgMhfGetUdTacticsFirstQuestBonus struct{} +type MsgMhfGetUdTacticsFirstQuestBonus struct { + AckHandle uint32 +} // Opcode returns the ID associated with this packet type. func (m *MsgMhfGetUdTacticsFirstQuestBonus) Opcode() network.PacketID { @@ -15,10 +17,11 @@ func (m *MsgMhfGetUdTacticsFirstQuestBonus) Opcode() network.PacketID { // Parse parses the packet from binary func (m *MsgMhfGetUdTacticsFirstQuestBonus) Parse(bf *byteframe.ByteFrame) error { - panic("Not implemented") + m.AckHandle = bf.ReadUint32() + return nil } // Build builds a binary packet from the current data. func (m *MsgMhfGetUdTacticsFirstQuestBonus) Build(bf *byteframe.ByteFrame) error { panic("Not implemented") -} \ No newline at end of file +} diff --git a/network/mhfpacket/msg_mhf_get_ud_tactics_log.go b/network/mhfpacket/msg_mhf_get_ud_tactics_log.go index afb8660b9..a39b58724 100644 --- a/network/mhfpacket/msg_mhf_get_ud_tactics_log.go +++ b/network/mhfpacket/msg_mhf_get_ud_tactics_log.go @@ -6,7 +6,9 @@ import ( ) // MsgMhfGetUdTacticsLog represents the MSG_MHF_GET_UD_TACTICS_LOG -type MsgMhfGetUdTacticsLog struct{} +type MsgMhfGetUdTacticsLog struct { + AckHandle uint32 +} // Opcode returns the ID associated with this packet type. func (m *MsgMhfGetUdTacticsLog) Opcode() network.PacketID { @@ -15,10 +17,11 @@ func (m *MsgMhfGetUdTacticsLog) Opcode() network.PacketID { // Parse parses the packet from binary func (m *MsgMhfGetUdTacticsLog) Parse(bf *byteframe.ByteFrame) error { - panic("Not implemented") + m.AckHandle = bf.ReadUint32() + return nil } // Build builds a binary packet from the current data. func (m *MsgMhfGetUdTacticsLog) Build(bf *byteframe.ByteFrame) error { panic("Not implemented") -} \ No newline at end of file +} diff --git a/network/mhfpacket/msg_mhf_get_ud_tactics_point.go b/network/mhfpacket/msg_mhf_get_ud_tactics_point.go index adcb75bb4..7cd0c8fc6 100644 --- a/network/mhfpacket/msg_mhf_get_ud_tactics_point.go +++ b/network/mhfpacket/msg_mhf_get_ud_tactics_point.go @@ -6,7 +6,9 @@ import ( ) // MsgMhfGetUdTacticsPoint represents the MSG_MHF_GET_UD_TACTICS_POINT -type MsgMhfGetUdTacticsPoint struct{} +type MsgMhfGetUdTacticsPoint struct { + AckHandle uint32 +} // Opcode returns the ID associated with this packet type. func (m *MsgMhfGetUdTacticsPoint) Opcode() network.PacketID { @@ -15,10 +17,11 @@ func (m *MsgMhfGetUdTacticsPoint) Opcode() network.PacketID { // Parse parses the packet from binary func (m *MsgMhfGetUdTacticsPoint) Parse(bf *byteframe.ByteFrame) error { - panic("Not implemented") + m.AckHandle = bf.ReadUint32() + return nil } // Build builds a binary packet from the current data. func (m *MsgMhfGetUdTacticsPoint) Build(bf *byteframe.ByteFrame) error { panic("Not implemented") -} \ No newline at end of file +} 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 8c771d0a3..bc8553e69 100644 --- a/network/mhfpacket/msg_mhf_get_ud_tactics_reward_list.go +++ b/network/mhfpacket/msg_mhf_get_ud_tactics_reward_list.go @@ -6,7 +6,9 @@ import ( ) // MsgMhfGetUdTacticsRewardList represents the MSG_MHF_GET_UD_TACTICS_REWARD_LIST -type MsgMhfGetUdTacticsRewardList struct{} +type MsgMhfGetUdTacticsRewardList struct { + AckHandle uint32 +} // Opcode returns the ID associated with this packet type. func (m *MsgMhfGetUdTacticsRewardList) Opcode() network.PacketID { @@ -15,10 +17,11 @@ func (m *MsgMhfGetUdTacticsRewardList) Opcode() network.PacketID { // Parse parses the packet from binary func (m *MsgMhfGetUdTacticsRewardList) Parse(bf *byteframe.ByteFrame) error { - panic("Not implemented") + m.AckHandle = bf.ReadUint32() + return nil } // Build builds a binary packet from the current data. func (m *MsgMhfGetUdTacticsRewardList) Build(bf *byteframe.ByteFrame) error { panic("Not implemented") -} \ No newline at end of file +} 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 e8e5ece5e..e53c355a8 100644 --- a/network/mhfpacket/msg_mhf_get_ud_total_point_info.go +++ b/network/mhfpacket/msg_mhf_get_ud_total_point_info.go @@ -6,7 +6,9 @@ import ( ) // MsgMhfGetUdTotalPointInfo represents the MSG_MHF_GET_UD_TOTAL_POINT_INFO -type MsgMhfGetUdTotalPointInfo struct{} +type MsgMhfGetUdTotalPointInfo struct { + AckHandle uint32 +} // Opcode returns the ID associated with this packet type. func (m *MsgMhfGetUdTotalPointInfo) Opcode() network.PacketID { @@ -15,10 +17,11 @@ func (m *MsgMhfGetUdTotalPointInfo) Opcode() network.PacketID { // Parse parses the packet from binary func (m *MsgMhfGetUdTotalPointInfo) Parse(bf *byteframe.ByteFrame) error { - panic("Not implemented") + m.AckHandle = bf.ReadUint32() + return nil } // Build builds a binary packet from the current data. func (m *MsgMhfGetUdTotalPointInfo) Build(bf *byteframe.ByteFrame) error { panic("Not implemented") -} \ No newline at end of file +} diff --git a/network/mhfpacket/msg_mhf_load_guild_adventure.go b/network/mhfpacket/msg_mhf_load_guild_adventure.go index 8760cdf21..e8dcffae4 100644 --- a/network/mhfpacket/msg_mhf_load_guild_adventure.go +++ b/network/mhfpacket/msg_mhf_load_guild_adventure.go @@ -6,7 +6,9 @@ import ( ) // MsgMhfLoadGuildAdventure represents the MSG_MHF_LOAD_GUILD_ADVENTURE -type MsgMhfLoadGuildAdventure struct{} +type MsgMhfLoadGuildAdventure struct { + AckHandle uint32 +} // Opcode returns the ID associated with this packet type. func (m *MsgMhfLoadGuildAdventure) Opcode() network.PacketID { @@ -15,10 +17,11 @@ func (m *MsgMhfLoadGuildAdventure) Opcode() network.PacketID { // Parse parses the packet from binary func (m *MsgMhfLoadGuildAdventure) Parse(bf *byteframe.ByteFrame) error { - panic("Not implemented") + m.AckHandle = bf.ReadUint32() + return nil } // Build builds a binary packet from the current data. func (m *MsgMhfLoadGuildAdventure) Build(bf *byteframe.ByteFrame) error { panic("Not implemented") -} \ No newline at end of file +} diff --git a/network/mhfpacket/msg_mhf_load_legend_dispatch.go b/network/mhfpacket/msg_mhf_load_legend_dispatch.go index 71fa18939..ac67b7a87 100644 --- a/network/mhfpacket/msg_mhf_load_legend_dispatch.go +++ b/network/mhfpacket/msg_mhf_load_legend_dispatch.go @@ -6,7 +6,9 @@ import ( ) // MsgMhfLoadLegendDispatch represents the MSG_MHF_LOAD_LEGEND_DISPATCH -type MsgMhfLoadLegendDispatch struct{} +type MsgMhfLoadLegendDispatch struct { + AckHandle uint32 +} // Opcode returns the ID associated with this packet type. func (m *MsgMhfLoadLegendDispatch) Opcode() network.PacketID { @@ -15,10 +17,11 @@ func (m *MsgMhfLoadLegendDispatch) Opcode() network.PacketID { // Parse parses the packet from binary func (m *MsgMhfLoadLegendDispatch) Parse(bf *byteframe.ByteFrame) error { - panic("Not implemented") + m.AckHandle = bf.ReadUint32() + return nil } // Build builds a binary packet from the current data. func (m *MsgMhfLoadLegendDispatch) Build(bf *byteframe.ByteFrame) error { panic("Not implemented") -} \ No newline at end of file +} diff --git a/network/mhfpacket/msg_mhf_receive_cafe_duration_bonus.go b/network/mhfpacket/msg_mhf_receive_cafe_duration_bonus.go index 75c9a1ff1..090a09bda 100644 --- a/network/mhfpacket/msg_mhf_receive_cafe_duration_bonus.go +++ b/network/mhfpacket/msg_mhf_receive_cafe_duration_bonus.go @@ -6,7 +6,9 @@ import ( ) // MsgMhfReceiveCafeDurationBonus represents the MSG_MHF_RECEIVE_CAFE_DURATION_BONUS -type MsgMhfReceiveCafeDurationBonus struct{} +type MsgMhfReceiveCafeDurationBonus struct { + AckHandle uint32 +} // Opcode returns the ID associated with this packet type. func (m *MsgMhfReceiveCafeDurationBonus) Opcode() network.PacketID { @@ -15,10 +17,11 @@ func (m *MsgMhfReceiveCafeDurationBonus) Opcode() network.PacketID { // Parse parses the packet from binary func (m *MsgMhfReceiveCafeDurationBonus) Parse(bf *byteframe.ByteFrame) error { - panic("Not implemented") + m.AckHandle = bf.ReadUint32() + return nil } // Build builds a binary packet from the current data. func (m *MsgMhfReceiveCafeDurationBonus) Build(bf *byteframe.ByteFrame) error { panic("Not implemented") -} \ No newline at end of file +} diff --git a/network/mhfpacket/msg_mhf_use_reward_song.go b/network/mhfpacket/msg_mhf_use_reward_song.go index dd75ac3e9..62854ceb6 100644 --- a/network/mhfpacket/msg_mhf_use_reward_song.go +++ b/network/mhfpacket/msg_mhf_use_reward_song.go @@ -6,7 +6,9 @@ import ( ) // MsgMhfUseRewardSong represents the MSG_MHF_USE_REWARD_SONG -type MsgMhfUseRewardSong struct{} +type MsgMhfUseRewardSong struct { + AckHandle uint32 +} // Opcode returns the ID associated with this packet type. func (m *MsgMhfUseRewardSong) Opcode() network.PacketID { @@ -15,10 +17,11 @@ func (m *MsgMhfUseRewardSong) Opcode() network.PacketID { // Parse parses the packet from binary func (m *MsgMhfUseRewardSong) Parse(bf *byteframe.ByteFrame) error { - panic("Not implemented") + m.AckHandle = bf.ReadUint32() + return nil } // Build builds a binary packet from the current data. func (m *MsgMhfUseRewardSong) Build(bf *byteframe.ByteFrame) error { panic("Not implemented") -} \ No newline at end of file +} diff --git a/network/mhfpacket/msg_sys_unlock_global_sema.go b/network/mhfpacket/msg_sys_unlock_global_sema.go index ff9702fda..adb61b1c6 100644 --- a/network/mhfpacket/msg_sys_unlock_global_sema.go +++ b/network/mhfpacket/msg_sys_unlock_global_sema.go @@ -6,7 +6,9 @@ import ( ) // MsgSysUnlockGlobalSema represents the MSG_SYS_UNLOCK_GLOBAL_SEMA -type MsgSysUnlockGlobalSema struct{} +type MsgSysUnlockGlobalSema struct { + AckHandle uint32 +} // Opcode returns the ID associated with this packet type. func (m *MsgSysUnlockGlobalSema) Opcode() network.PacketID { @@ -15,10 +17,11 @@ func (m *MsgSysUnlockGlobalSema) Opcode() network.PacketID { // Parse parses the packet from binary func (m *MsgSysUnlockGlobalSema) Parse(bf *byteframe.ByteFrame) error { - panic("Not implemented") + m.AckHandle = bf.ReadUint32() + return nil } // Build builds a binary packet from the current data. func (m *MsgSysUnlockGlobalSema) Build(bf *byteframe.ByteFrame) error { panic("Not implemented") -} \ No newline at end of file +}