aboutsummaryrefslogtreecommitdiff
path: root/pkg/messages/types/svcPaintmapData.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/messages/types/svcPaintmapData.go')
-rw-r--r--pkg/messages/types/svcPaintmapData.go16
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 @@
1package messages
2
3import "github.com/pektezol/bitreader"
4
5type SvcPaintmapData struct {
6 Length int32
7 Data []byte
8}
9
10func 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}