steam

package
v0.0.0-...-cc691f3 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	// contains filtered or unexported fields
}

func NewAPI

func NewAPI() *API

func (*API) DeleteDownloadData

func (i *API) DeleteDownloadData(appid int)

func (*API) GetGame

func (i *API) GetGame(appid int) Game

func (*API) GetGameHeaderImagePath

func (i *API) GetGameHeaderImagePath(appid int) string

func (*API) GetGameManifestPath

func (i *API) GetGameManifestPath(appid int) string

func (*API) GetGamePath

func (i *API) GetGamePath(appid int) string

func (*API) GetGames

func (i *API) GetGames() []Game

func (*API) LoadGames

func (i *API) LoadGames() (err error)

func (*API) LoadManifest

func (i *API) LoadManifest(filename string) (game Game, err error)

func (*API) SetConfig

func (i *API) SetConfig(config Config) (err error)

func (*API) SteamAppsPath

func (i *API) SteamAppsPath() string

type Config

type Config struct {
	SteamPath string
}

type Game

type Game struct {
	AppID              int    `acf:"appid" json:"appid"`
	Name               string `acf:"name" json:"name"`
	StateFlags         int    `acf:"StateFlags" json:"stateflags"`
	InstallDir         string `acf:"installdir" json:"installdir"`
	LastUpdated        int    `acf:"LastUpdated" json:"lastupdated"`
	UpdateResult       int    `acf:"UpdateResult" json:"updateresult"`
	SizeOnDisk         int    `acf:"SizeOnDisk" json:"sizeondisk"`
	BuildID            string `acf:"buildid" json:"buildid"`
	BytesToDownload    int    `acf:"BytesToDownload" json:"bytestodownload"`
	BytesDownloaded    int    `acf:"BytesDownloaded" json:"bytesdownloaded"`
	AutoUpdateBehavior int    `acf:"AutoUpdateBehavior" json:"autoupdatebehavior"`
}

Jump to

Keyboard shortcuts

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