From 9f5e8f230d35fffb106088b72e5fdb148905f450 Mon Sep 17 00:00:00 2001 From: Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> Date: Thu, 10 Nov 2022 22:59:32 +0300 Subject: added almost all net/svc messages - currently broken --- packets/messages/types/SvcPaintmapData.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 packets/messages/types/SvcPaintmapData.go (limited to 'packets/messages/types/SvcPaintmapData.go') 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 @@ +package types + +import "github.com/pektezol/bitreader" + +type SvcPaintmapData struct { + Data []byte +} + +func ParseSvcPaintmapData(reader *bitreader.ReaderType) SvcPaintmapData { + length := reader.TryReadInt32() + return SvcPaintmapData{ + Data: reader.TryReadBytesToSlice(int(length / 8)), + } +} -- cgit v1.2.3