blob: f689876cc890567f8853c3d9d2725693e3a7aaa6 (
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
|
package messages
import (
"github.com/pektezol/bitreader"
)
type SvcCrosshairAngle struct {
Angle crosshairAngles
}
type crosshairAngles struct {
X float32
Y float32
Z float32
}
func ParseSvcCrosshairAngle(reader *bitreader.Reader) SvcCrosshairAngle {
svcCrosshairAngle := SvcCrosshairAngle{
Angle: crosshairAngles{
X: float32(reader.TryReadBits(16)),
Y: float32(reader.TryReadBits(16)),
Z: float32(reader.TryReadBits(16)),
},
}
return svcCrosshairAngle
}
|