Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WriteManifestFromPack ¶
Types ¶
type AddonFileReference ¶
type AddonFileReference struct {
ProjectID uint32
FileID uint32
// OptionalDisabled is true if the file is optional and disabled (turned off in Twitch launcher)
OptionalDisabled bool
}
AddonFileReference is a struct to reference a single file on CurseForge
type ImportPackFile ¶
type ImportPackFile interface {
Name() string
Open() (io.ReadCloser, error)
}
type ImportPackMetadata ¶
type ImportPackMetadata interface {
Name() string
PackAuthor() string
PackVersion() string
Versions() map[string]string
Mods() []AddonFileReference
GetFiles() ([]ImportPackFile, error)
}
func ReadMetadata ¶
func ReadMetadata(s ImportPackSource) ImportPackMetadata
type ImportPackSource ¶
type ImportPackSource interface {
GetFile(path string) (ImportPackFile, error)
GetFileList() ([]ImportPackFile, error)
GetPackFile() ImportPackFile
}
func GetDiskPackSource ¶
func GetDiskPackSource(metaSource *bufio.Reader, metaName string, basePath string) ImportPackSource
func GetZipPackSource ¶
func GetZipPackSource(metaFile *zip.File, reader *zip.Reader) ImportPackSource
Click to show internal directories.
Click to hide internal directories.