nexus

package
v1.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 8, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// NexusFileDownload file_id, NexusGameID
	NexusFileDownload = "https://www.nexusmods.com/Core/Libs/Common/Widgets/DownloadPopUp?id=%d&game_id=%v"
)

Variables

This section is empty.

Functions

func GetDownloads added in v0.8.1

func GetDownloads(game config.GameDef, modID string) (dls []*mods.Download, err error)

func IsNexus

func IsNexus(url string) bool

func NewClient

func NewClient(compiler u.ModCompiler) *client

Types

type NexusFile

type NexusFile struct {
	FileID      int    `json:"file_id"`
	Name        string `json:"name"`
	Version     string `json:"version"`
	IsPrimary   bool   `json:"is_primary"`
	FileName    string `json:"file_name"`
	ModVersion  string `json:"mod_version"`
	Description string `json:"description"`
}

func (NexusFile) ToDownload added in v0.8.1

func (f NexusFile) ToDownload() *mods.Download

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL