From 425da65ed46061303604610bb539d6495b2b1f3f Mon Sep 17 00:00:00 2001 From: anon5 Date: Mon, 21 Jun 2021 18:47:26 +0000 Subject: Add high-level protocol (de)serialization --- minimap.go | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 minimap.go (limited to 'minimap.go') diff --git a/minimap.go b/minimap.go new file mode 100644 index 0000000..f0817f7 --- /dev/null +++ b/minimap.go @@ -0,0 +1,29 @@ +package mt + +type MinimapType uint16 + +const ( + NoMinimap MinimapType = iota + SurfaceMinimap + RadarMinimap + TextureMinimap +) + +type MinimapMode struct { + Type MinimapType + Label string + Size uint16 + Texture + Scale uint16 +} + +// DefaultMinimap is the initial set of MinimapModes used by the client. +var DefaultMinimap = []MinimapMode{ + {Type: NoMinimap}, + {Type: SurfaceMinimap, Size: 256}, + {Type: SurfaceMinimap, Size: 128}, + {Type: SurfaceMinimap, Size: 64}, + {Type: RadarMinimap, Size: 512}, + {Type: RadarMinimap, Size: 256}, + {Type: RadarMinimap, Size: 128}, +} -- cgit v1.2.3