diff options
Diffstat (limited to 'pkg/messages/types/svcFixAngle.go')
| -rw-r--r-- | pkg/messages/types/svcFixAngle.go | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/pkg/messages/types/svcFixAngle.go b/pkg/messages/types/svcFixAngle.go deleted file mode 100644 index f00c239..0000000 --- a/pkg/messages/types/svcFixAngle.go +++ /dev/null | |||
| @@ -1,29 +0,0 @@ | |||
| 1 | package messages | ||
| 2 | |||
| 3 | import ( | ||
| 4 | "github.com/pektezol/bitreader" | ||
| 5 | ) | ||
| 6 | |||
| 7 | type SvcFixAngle struct { | ||
| 8 | Relative bool | ||
| 9 | Angle fixAngles | ||
| 10 | } | ||
| 11 | |||
| 12 | type fixAngles struct { | ||
| 13 | X float32 | ||
| 14 | Y float32 | ||
| 15 | Z float32 | ||
| 16 | } | ||
| 17 | |||
| 18 | func ParseSvcFixAngle(reader *bitreader.Reader) SvcFixAngle { | ||
| 19 | svcFixAngle := SvcFixAngle{ | ||
| 20 | Relative: reader.TryReadBool(), | ||
| 21 | Angle: fixAngles{ | ||
| 22 | X: float32(reader.TryReadBits(16)), | ||
| 23 | Y: float32(reader.TryReadBits(16)), | ||
| 24 | Z: float32(reader.TryReadBits(16)), | ||
| 25 | }, | ||
| 26 | } | ||
| 27 | |||
| 28 | return svcFixAngle | ||
| 29 | } | ||