From 4846a024ebf39353cb3c996bb7a21aa614728025 Mon Sep 17 00:00:00 2001 From: Andrew Gutekanst Date: Fri, 27 Dec 2019 08:25:52 +0900 Subject: [PATCH] Add MSG_MHF_GET_GACHA_POINT parser --- network/mhfpacket/msg_mhf_get_gacha_point.go | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/network/mhfpacket/msg_mhf_get_gacha_point.go b/network/mhfpacket/msg_mhf_get_gacha_point.go index 1bbd48276..5a409c775 100644 --- a/network/mhfpacket/msg_mhf_get_gacha_point.go +++ b/network/mhfpacket/msg_mhf_get_gacha_point.go @@ -6,7 +6,9 @@ import ( ) // MsgMhfGetGachaPoint represents the MSG_MHF_GET_GACHA_POINT -type MsgMhfGetGachaPoint struct{} +type MsgMhfGetGachaPoint struct { + AckHandle uint32 +} // Opcode returns the ID associated with this packet type. func (m *MsgMhfGetGachaPoint) Opcode() network.PacketID { @@ -15,10 +17,11 @@ func (m *MsgMhfGetGachaPoint) Opcode() network.PacketID { // Parse parses the packet from binary func (m *MsgMhfGetGachaPoint) 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 *MsgMhfGetGachaPoint) Build(bf *byteframe.ByteFrame) error { panic("Not implemented") -} \ No newline at end of file +}