diff options
author | anon5 <anon5clam@protonmail.com> | 2021-06-21 18:47:26 +0000 |
---|---|---|
committer | anon5 <anon5clam@protonmail.com> | 2021-06-21 18:47:26 +0000 |
commit | 425da65ed46061303604610bb539d6495b2b1f3f (patch) | |
tree | 10ae3e665132c369ce0207676321cef870679923 /minimap.go | |
parent | 9f239d341ef46b656dda759020da87bdd0606344 (diff) | |
download | mt-425da65ed46061303604610bb539d6495b2b1f3f.tar.xz |
Add high-level protocol (de)serialization
Diffstat (limited to 'minimap.go')
-rw-r--r-- | minimap.go | 29 |
1 files changed, 29 insertions, 0 deletions
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}, +} |