Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func IsAllPreRelease ¶ added in v1.3.2
Types ¶
type AppSide ¶
type AppSide uint8
https://apidocs.vintagestory.at/api/Vintagestory.API.Common.EnumAppSide.html
func (*AppSide) MarshalJSON ¶
func (*AppSide) UnmarshalJSON ¶
type Bool ¶ added in v1.0.4
type Bool bool
func (*Bool) MarshalJSON ¶ added in v1.0.4
func (*Bool) UnmarshalJSON ¶ added in v1.0.4
type Info ¶
type Info struct {
Path string `json:"-"`
Error error `json:"-"`
Type Type `json:"type"`
Name string `json:"name"`
ModID string `json:"modid,omitempty"`
Version SemVer `json:"version"`
NetworkVersion string `json:"networkVersion,omitempty"`
TextureSize int `json:"textureSize,omitempty"`
Description string `json:"description,omitempty"`
Website string `json:"website,omitempty"`
IconPath string `json:"iconPath,omitempty"`
Authors []string `json:"authors,omitempty"`
Contributors []string `json:"contributors,omitempty"`
Side AppSide `json:"side,omitempty"`
RequiredOnClient Bool `json:"requiredOnClient,omitempty"`
RequiredOnServer Bool `json:"requiredOnServer,omitempty"`
Dependencies map[string]string `json:"dependencies,omitempty"`
}
Info contains mod metadata
- [Wiki](https://wiki.vintagestory.at/Modding:Modinfo)
- [Docs](https://apidocs.vintagestory.at/api/Vintagestory.API.Common.Info.html)
func InfoFromPath ¶ added in v1.0.4
Returns Info slice from zip files
func InfoFromZip ¶
func (*Info) CheckUpdates ¶
CheckUpdates returns url to latest mod version
type Mod ¶
type Mod struct {
ModID int `json:"modid,omitempty"`
AssetID int `json:"assetid,omitempty"`
Name string `json:"name,omitempty"`
Text string `json:"text,omitempty"`
Author string `json:"author,omitempty"`
UrlAlias any `json:"urlalias,omitempty"`
LogoFilename any `json:"logofilename,omitempty"`
LogoFile any `json:"logofile,omitempty"`
LogoFileDB any `json:"logofiledb,omitempty"`
HomepageUrl any `json:"homepageurl,omitempty"`
SourcecodeUrl any `json:"sourcecodeurl,omitempty"`
TrailervideoUrl any `json:"trailervideourl,omitempty"`
IssuetrackerUrl any `json:"issuetrackerurl,omitempty"`
WikiUrl any `json:"wikiurl,omitempty"`
Downloads int `json:"downloads,omitempty"`
Follows int `json:"follows,omitempty"`
TrendingPoints int `json:"trendingpoints,omitempty"`
Comments int `json:"comments,omitempty"`
Side string `json:"side,omitempty"`
Type string `json:"type,omitempty"`
Created string `json:"created,omitempty"`
LastReleased string `json:"lastreleased,omitempty"`
LastModified string `json:"lastmodified,omitempty"`
Tags []string `json:"tags,omitempty"`
Releases []Releases `json:"releases,omitempty"`
Screenshots []any `json:"screenshots,omitempty"`
}
type Releases ¶
type Releases struct {
ReleaseID int `json:"releaseid,omitempty"`
Mainfile string `json:"mainfile,omitempty"`
Filename string `json:"filename,omitempty"`
FileID int `json:"fileid,omitempty"`
Downloads int `json:"downloads,omitempty"`
Tags []SemVer `json:"tags,omitempty"` // Supported game versions list
ModIDStr string `json:"modidstr,omitempty"`
ModVersion SemVer `json:"modversion"`
Created string `json:"created,omitempty"`
Changelog string `json:"changelog,omitempty"`
}
type SemVer ¶ added in v1.1.3
type SemVer struct {
// contains filtered or unexported fields
}
func GetLatestVersion ¶ added in v1.3.2
func (SemVer) PreRelease ¶ added in v1.2.0
func (*SemVer) UnmarshalJSON ¶ added in v1.1.3
type Type ¶
type Type uint8
https://apidocs.vintagestory.at/api/Vintagestory.API.Common.EnumModType.html
func (*Type) MarshalJSON ¶
func (*Type) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.