Update parsers

This commit is contained in:
Andrew Gutekanst
2019-12-27 04:41:05 +09:00
parent d4dddf01dd
commit 6a23130772
6 changed files with 21 additions and 13 deletions

View File

@@ -6,7 +6,9 @@ import (
)
// MsgMhfGetEtcPoints represents the MSG_MHF_GET_ETC_POINTS
type MsgMhfGetEtcPoints struct{}
type MsgMhfGetEtcPoints struct {
AckHandle uint32
}
// Opcode returns the ID associated with this packet type.
func (m *MsgMhfGetEtcPoints) Opcode() network.PacketID {
@@ -15,6 +17,7 @@ func (m *MsgMhfGetEtcPoints) Opcode() network.PacketID {
// Parse parses the packet from binary
func (m *MsgMhfGetEtcPoints) Parse(bf *byteframe.ByteFrame) error {
m.AckHandle = bf.ReadUint32()
return nil
}