diff options
Diffstat (limited to 'pkg/messages/types/svcPaintmapData.go')
| -rw-r--r-- | pkg/messages/types/svcPaintmapData.go | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/pkg/messages/types/svcPaintmapData.go b/pkg/messages/types/svcPaintmapData.go new file mode 100644 index 0000000..6b041da --- /dev/null +++ b/pkg/messages/types/svcPaintmapData.go | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | package messages | ||
| 2 | |||
| 3 | import "github.com/pektezol/bitreader" | ||
| 4 | |||
| 5 | type SvcPaintmapData struct { | ||
| 6 | Length int32 | ||
| 7 | Data []byte | ||
| 8 | } | ||
| 9 | |||
| 10 | func ParseSvcPaintmapData(reader *bitreader.ReaderType) SvcPaintmapData { | ||
| 11 | svcPaintmapData := SvcPaintmapData{ | ||
| 12 | Length: int32(reader.TryReadBits(32)), | ||
| 13 | } | ||
| 14 | svcPaintmapData.Data = reader.TryReadBitsToSlice(int(svcPaintmapData.Length)) | ||
| 15 | return svcPaintmapData | ||
| 16 | } | ||