mirror of
https://github.com/packwiz/packwiz.git
synced 2025-11-19 01:24:32 +01:00
Initial command system
This commit is contained in:
29
core/mod.go
Normal file
29
core/mod.go
Normal file
@@ -0,0 +1,29 @@
|
||||
package core
|
||||
|
||||
import "github.com/BurntSushi/toml"
|
||||
|
||||
// Mod stores metadata about a mod. This is written to a TOML file for each mod.
|
||||
type Mod struct {
|
||||
metaFilename string
|
||||
Name string `toml:"name"`
|
||||
FileName string `toml:"filename"`
|
||||
Side string `toml:"side"`
|
||||
Optional bool `toml:"optional"`
|
||||
Download struct {
|
||||
URL string `toml:"url"`
|
||||
HashFormat string `toml:"hash-format"`
|
||||
Hash string `toml:"hash"`
|
||||
} `toml:"download"`
|
||||
Update map[string]toml.Primitive
|
||||
}
|
||||
// The three possible values of Side (the side that the mod is on) are "server", "client", and "both".
|
||||
const (
|
||||
ServerSide = "server"
|
||||
ClientSide = "client"
|
||||
UniversalSide = "both"
|
||||
)
|
||||
|
||||
func (m Mod) Write() {
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user