-
Notifications
You must be signed in to change notification settings - Fork 0
/
manifest-structures.go
43 lines (38 loc) · 1.36 KB
/
manifest-structures.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
package main
// Manifest contains all contents within the .json file
type Manifest struct {
Minecraft Minecraft `json:"minecraft"`
ManifestType string `json:"manifestType"`
ManifestVersion int `json:"manifestVersion"`
Name string `json:"name"`
Version string `json:"version"`
Author string `json:"author"`
Files []CurrFile `json:"files"`
}
// CurrFile contains all contents within each .jar file
type CurrFile struct {
ProjectID int `json:"projectID"`
FileID int `json:"fileID"`
Required bool `json:"required"`
}
// Minecraft contains the version and the modloaders for the manifest
type Minecraft struct {
Version string `json:"version"`
ModLoaders []ModLoaders `json:"modLoaders"`
}
// ModLoaders contains the id and type for Minecraft
type ModLoaders struct {
ID string `json:"id"`
Primary bool `json:"primary"`
}
// ExportJSON contains all contents for the export.json file
type ExportJSON struct {
MinecraftVersion string `json:"MinecraftVersion"`
Modloader string `json:"Modloader"`
ModloaderVersion string `json:"ModloaderVersion"`
ManifestType string `json:"ManifestType"`
ManifestVersion int `json:"ManifestVersion"`
PackName string `json:"PackName"`
PackVersion string `json:"PackVersion"`
PackAuthors string `json:"PackAuthors"`
}