From 86d4ec55cb64726a32b55252e807fa958cc80c77 Mon Sep 17 00:00:00 2001 From: Andrew Gutekanst Date: Thu, 23 Jan 2020 20:32:15 -0500 Subject: [PATCH] Implement MsgSysPositionObject Build --- network/mhfpacket/msg_sys_position_object.go | 6 +++++- server/channelserver/handlers.go | 4 +++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/network/mhfpacket/msg_sys_position_object.go b/network/mhfpacket/msg_sys_position_object.go index 7bb70157c..5ba3152df 100644 --- a/network/mhfpacket/msg_sys_position_object.go +++ b/network/mhfpacket/msg_sys_position_object.go @@ -27,5 +27,9 @@ func (m *MsgSysPositionObject) Parse(bf *byteframe.ByteFrame) error { // Build builds a binary packet from the current data. func (m *MsgSysPositionObject) Build(bf *byteframe.ByteFrame) error { - panic("Not implemented") + bf.WriteUint32(m.ObjID) + bf.WriteFloat32(m.X) + bf.WriteFloat32(m.Y) + bf.WriteFloat32(m.Z) + return nil } \ No newline at end of file diff --git a/server/channelserver/handlers.go b/server/channelserver/handlers.go index 4e8f196e3..91a31c507 100644 --- a/server/channelserver/handlers.go +++ b/server/channelserver/handlers.go @@ -532,7 +532,9 @@ func handleMsgSysSetUserBinary(s *Session, p mhfpacket.MHFPacket) { //pkt := p.(*mhfpacket.MsgSysSetUserBinary) } -func handleMsgSysGetUserBinary(s *Session, p mhfpacket.MHFPacket) {} +func handleMsgSysGetUserBinary(s *Session, p mhfpacket.MHFPacket) { + +} func handleMsgSysNotifyUserBinary(s *Session, p mhfpacket.MHFPacket) {}