-
Notifications
You must be signed in to change notification settings - Fork 3
/
types.go
55 lines (44 loc) · 980 Bytes
/
types.go
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
package save
import (
"image"
"time"
)
type LoadType uint8
const (
LoadTypeNone LoadType = iota
LoadTypeGame
LoadTypeMap
)
type MapLocation struct {
Name string
IsEmbedded bool
}
type SaveGame struct {
Name string
Time time.Time
}
type saveGameInfo struct {
Resources saveGameResources
}
type saveGameResources struct {
SaveTime saveTime `json:"res.SaveTime"`
}
type saveTime struct {
Time time.Time
}
type MapInfo struct {
Achievements []string
Description string
}
type mapInfoJs struct {
Achievements []string `json:"achievements"`
Description []string `json:"description"`
}
type mapJs struct {
Terrains map[string]int `json:"terrains"`
Map []string `json:"map"`
Achievements []string `json:"achievements"`
Description []string `json:"description"`
Center image.Point `json:"center"`
InitialRandomTerrains int `json:"initial_terrains"`
}