forked from HimbeerserverDE/mt
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathminimap.go
More file actions
31 lines (26 loc) · 721 Bytes
/
minimap.go
File metadata and controls
31 lines (26 loc) · 721 Bytes
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},
}