summaryrefslogtreecommitdiff
path: root/minimap.go
blob: 857bf516c3a3944bcda3ad6a227b7333d6c12625 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package mt

type MinimapType uint16

const (
	NoMinimap      MinimapType = iota // none
	SurfaceMinimap                    // surface
	RadarMinimap                      // radar
	TextureMinimap                    // texture
)

//go:generate stringer -linecomment -type MinimapType

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},
}