aboutsummaryrefslogtreecommitdiff
path: root/pkg/messages/types/svcFixAngle.go
blob: 56acf04cb5d20cd3b0b4dff6f9701f25fca6b14b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package messages

import "github.com/pektezol/bitreader"

type SvcFixAngle struct {
	Relative bool
	Angle    []int16
}

func ParseSvcFixAngle(reader *bitreader.ReaderType) SvcFixAngle {
	return SvcFixAngle{
		Relative: reader.TryReadBool(),
		Angle:    []int16{int16(reader.TryReadBits(16)), int16(reader.TryReadBits(16)), int16(reader.TryReadBits(16))},
	}
}