blob: f00c239aa86dc59fb9105e6e3b37d201483daccc (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
package messages
import (
"github.com/pektezol/bitreader"
)
type SvcFixAngle struct {
Relative bool
Angle fixAngles
}
type fixAngles struct {
X float32
Y float32
Z float32
}
func ParseSvcFixAngle(reader *bitreader.Reader) SvcFixAngle {
svcFixAngle := SvcFixAngle{
Relative: reader.TryReadBool(),
Angle: fixAngles{
X: float32(reader.TryReadBits(16)),
Y: float32(reader.TryReadBits(16)),
Z: float32(reader.TryReadBits(16)),
},
}
return svcFixAngle
}
|