Add MsgSysReserve203/IsUpdateGuildMsgBoard

This commit is contained in:
Andrew Gutekanst
2020-01-21 20:01:32 -05:00
parent 4c839440cd
commit 76fe663ee1
2 changed files with 55 additions and 29 deletions

View File

@@ -5,8 +5,14 @@ import (
"github.com/Andoryuuta/byteframe"
)
// TODO(Andoryuuta): Make up a name for this packet, not reserved anymore. Called "Is_update_guild_msg_board"
// MsgSysReserve203 represents the MSG_SYS_reserve203
type MsgSysReserve203 struct{}
type MsgSysReserve203 struct {
AckHandle uint32
Unk0 uint16 // Hardcoded 0x0000 in the binary
Unk1 uint16 // Hardcoded 0x0500 in the binary.
}
// Opcode returns the ID associated with this packet type.
func (m *MsgSysReserve203) Opcode() network.PacketID {
@@ -15,10 +21,13 @@ func (m *MsgSysReserve203) Opcode() network.PacketID {
// Parse parses the packet from binary
func (m *MsgSysReserve203) Parse(bf *byteframe.ByteFrame) error {
panic("Not implemented")
m.AckHandle = bf.ReadUint32()
m.Unk0 = bf.ReadUint16()
m.Unk1 = bf.ReadUint16()
return nil
}
// Build builds a binary packet from the current data.
func (m *MsgSysReserve203) Build(bf *byteframe.ByteFrame) error {
panic("Not implemented")
}
}