Documentation
¶
Index ¶
- Variables
- func ExtractArchive(modFilePath string, modDirectory string) error
- func GetModState()
- func InitModManager()
- func InstallAllMods() error
- func ProcessModState()
- func SendModState() error
- func ShutdownModManager() error
- func UninstallMod(modReference string) error
- func UpdateModConfigFile(modReference string, modConfig string) error
- type InstalledMod
- type Mod
- type ModState
- type ModVersion
- type ModVersionTarget
- type SelectedMod
- type UPluginFile
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ModCachePatch string
)
Functions ¶
func ExtractArchive ¶
func GetModState ¶
func GetModState()
func InitModManager ¶
func InitModManager()
func InstallAllMods ¶
func InstallAllMods() error
func ProcessModState ¶
func ProcessModState()
func SendModState ¶
func SendModState() error
func ShutdownModManager ¶
func ShutdownModManager() error
func UninstallMod ¶
func UpdateModConfigFile ¶
Types ¶
type InstalledMod ¶
type InstalledMod struct { ModReference string ModPath string ModDisplayName string `json:"FriendlyName"` ModUPluginPath string ModVersion string `json:"SemVersion"` ShouldUninstall bool }
func FindModsOnDisk ¶
func FindModsOnDisk() []InstalledMod
type ModState ¶
type ModState struct {
SelectedMods []SelectedMod `json:"selectedMods"`
}
type ModVersion ¶
type ModVersion struct { Version string `json:"version"` Link string `json:"link"` SMLVersion string `json:"sml_version"` Targets []ModVersionTarget `json:"targets"` }
type ModVersionTarget ¶
type SelectedMod ¶
type SelectedMod struct { Mod Mod `json:"mod"` DesiredVersion string `json:"desiredVersion"` InstalledVersion string `json:"installedVersion"` Installed bool `json:"installed"` NeedsUpdate bool `json:"needsUpdate"` Config string `json:"config"` }
func (*SelectedMod) CheckInstalledOnDisk ¶
func (obj *SelectedMod) CheckInstalledOnDisk() error
func (*SelectedMod) CheckMeetsDesiredVersion ¶
func (obj *SelectedMod) CheckMeetsDesiredVersion() error
func (*SelectedMod) DownloadVersion ¶
func (obj *SelectedMod) DownloadVersion(version ModVersion) error
func (*SelectedMod) GetModConfig ¶
func (obj *SelectedMod) GetModConfig() error
func (*SelectedMod) Init ¶
func (obj *SelectedMod) Init() error
type UPluginFile ¶
type UPluginFile struct {
SemVersion string `json:"SemVersion"`
}
Click to show internal directories.
Click to hide internal directories.