diff options
| author | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2023-11-06 18:37:11 +0300 |
|---|---|---|
| committer | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2023-11-06 18:37:11 +0300 |
| commit | 2f8c92f261586f68a976efce0cfcdd0401f402e0 (patch) | |
| tree | 33189cc48987789dff4e7fba0a74d2b2326f0a04 /pkg/messages/types/svcCrosshairAngle.go | |
| parent | convert cm ticks correctly (diff) | |
| download | sdp.go-2f8c92f261586f68a976efce0cfcdd0401f402e0.tar.gz sdp.go-2f8c92f261586f68a976efce0cfcdd0401f402e0.tar.bz2 sdp.go-2f8c92f261586f68a976efce0cfcdd0401f402e0.zip | |
dont try to understand it, feel itlp-parser
Diffstat (limited to 'pkg/messages/types/svcCrosshairAngle.go')
| -rw-r--r-- | pkg/messages/types/svcCrosshairAngle.go | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/pkg/messages/types/svcCrosshairAngle.go b/pkg/messages/types/svcCrosshairAngle.go deleted file mode 100644 index f689876..0000000 --- a/pkg/messages/types/svcCrosshairAngle.go +++ /dev/null | |||
| @@ -1,27 +0,0 @@ | |||
| 1 | package messages | ||
| 2 | |||
| 3 | import ( | ||
| 4 | "github.com/pektezol/bitreader" | ||
| 5 | ) | ||
| 6 | |||
| 7 | type SvcCrosshairAngle struct { | ||
| 8 | Angle crosshairAngles | ||
| 9 | } | ||
| 10 | |||
| 11 | type crosshairAngles struct { | ||
| 12 | X float32 | ||
| 13 | Y float32 | ||
| 14 | Z float32 | ||
| 15 | } | ||
| 16 | |||
| 17 | func ParseSvcCrosshairAngle(reader *bitreader.Reader) SvcCrosshairAngle { | ||
| 18 | svcCrosshairAngle := SvcCrosshairAngle{ | ||
| 19 | Angle: crosshairAngles{ | ||
| 20 | X: float32(reader.TryReadBits(16)), | ||
| 21 | Y: float32(reader.TryReadBits(16)), | ||
| 22 | Z: float32(reader.TryReadBits(16)), | ||
| 23 | }, | ||
| 24 | } | ||
| 25 | |||
| 26 | return svcCrosshairAngle | ||
| 27 | } | ||