Implement MsgSysPositionObject Build

This commit is contained in:
Andrew Gutekanst
2020-01-23 20:32:15 -05:00
parent 3b443344a2
commit 86d4ec55cb
2 changed files with 8 additions and 2 deletions

View File

@@ -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
}

View File

@@ -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) {}