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