func MsgSceneVector3Decode(pack *packet.Packet) *MsgSceneVector3 { msgSceneVector3 := &MsgSceneVector3{} msgSceneVector3.x = pack.ReadInt16() msgSceneVector3.y = pack.ReadInt16() msgSceneVector3.z = pack.ReadInt16() return msgSceneVector3 }
func ReqSceneMoveDecode(pack *packet.Packet) *ReqSceneMove { reqSceneMove := &ReqSceneMove{} reqSceneMove.sceneRotPos = MsgSceneRotPosDecode(pack) reqSceneMove.forward = MsgSceneVector3Decode(pack) reqSceneMove.aniName = pack.ReadString() reqSceneMove.xAxis = pack.ReadInt16() return reqSceneMove }
func AckSceneMoveDecode(pack *packet.Packet) *AckSceneMove { ackSceneMove := &AckSceneMove{} ackSceneMove.sceneRotPos = MsgSceneRotPosDecode(pack) ackSceneMove.forward = MsgSceneVector3Decode(pack) ackSceneMove.aniName = pack.ReadString() ackSceneMove.xAxis = pack.ReadInt16() ackSceneMove.uid = pack.ReadUint32() return ackSceneMove }
func MsgSceneRotPosDecode(pack *packet.Packet) *MsgSceneRotPos { msgSceneRotPos := &MsgSceneRotPos{} msgSceneRotPos.rotX = pack.ReadInt16() msgSceneRotPos.rotY = pack.ReadInt16() msgSceneRotPos.rotZ = pack.ReadInt16() msgSceneRotPos.posX = pack.ReadInt16() msgSceneRotPos.posY = pack.ReadInt16() msgSceneRotPos.posZ = pack.ReadInt16() return msgSceneRotPos }