Add support for players logging out and closing client

Removed seemingly unnecessary castedBinary messages on character login
This commit is contained in:
Sophie
2020-03-09 19:15:16 +00:00
parent ba3df8d4d1
commit 78fe5c85ef
3 changed files with 83 additions and 38 deletions

View File

@@ -6,7 +6,9 @@ import (
)
// MsgSysDeleteUser represents the MSG_SYS_DELETE_USER
type MsgSysDeleteUser struct{}
type MsgSysDeleteUser struct {
CharID uint32
}
// Opcode returns the ID associated with this packet type.
func (m *MsgSysDeleteUser) Opcode() network.PacketID {
@@ -20,5 +22,7 @@ func (m *MsgSysDeleteUser) Parse(bf *byteframe.ByteFrame) error {
// Build builds a binary packet from the current data.
func (m *MsgSysDeleteUser) Build(bf *byteframe.ByteFrame) error {
panic("Not implemented")
bf.WriteUint32(m.CharID)
return nil
}