Documentation ¶
Index ¶
- type Game
- type Manager
- func (m *Manager) FindLangs(games []Game) []string
- func (m *Manager) GetGameImage(game *Game) (imagePath string, e error)
- func (m *Manager) GetInstalledGames() ([]Game, error)
- func (m *Manager) GetMergedGames() ([]Game, error)
- func (m *Manager) GetRepositories() []configurator.Repository
- func (m *Manager) GetRepositoryGames() ([]Game, error)
- func (m *Manager) GetSortedGames() ([]Game, error)
- func (m *Manager) HasDownloadedRepositories() bool
- func (m *Manager) InstallGame(game *Game) error
- func (m *Manager) RemoveGame(game *Game) error
- func (m *Manager) RunGame(game *Game) error
- func (m *Manager) StopRunningGame() error
- func (m *Manager) UpdateRepositories() []error
- type RepositoryGame
- type RepositoryGameList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Game ¶
type Game RepositoryGame
func FilterGames ¶
func FindGameById ¶
func FindGamesByName ¶
func (*Game) GetHumanSize ¶
type Manager ¶
type Manager struct { Config *configurator.InsteadmanConfig CurrentRunningCmd *exec.Cmd }
func (*Manager) GetGameImage ¶
func (*Manager) GetInstalledGames ¶
func (*Manager) GetMergedGames ¶
func (*Manager) GetRepositories ¶
func (m *Manager) GetRepositories() []configurator.Repository
func (*Manager) GetRepositoryGames ¶
func (*Manager) GetSortedGames ¶
func (*Manager) HasDownloadedRepositories ¶
func (*Manager) InstallGame ¶
func (*Manager) RemoveGame ¶
func (*Manager) StopRunningGame ¶
func (*Manager) UpdateRepositories ¶
type RepositoryGame ¶
type RepositoryGame struct { // XMLName xml.Name `xml:"game"` Name string `xml:"name"` Title string `xml:"title"` Version string `xml:"version"` Url string `xml:"url"` Size int `xml:"size"` Lang string `xml:"lang"` Descurl string `xml:"descurl"` Author string `xml:"author"` Description string `xml:"description"` Image string `xml:"image"` Langs []string `xml:"langs>lang"` InstalledVersion string `xml:"-"` RepositoryName string `xml:"-"` Installed bool `xml:"-"` OnlyInstalled bool `xml:"-"` IsUpdateExist bool `xml:"-"` Languages []string `xml:"-"` Id string `xml:"-"` }
type RepositoryGameList ¶
type RepositoryGameList struct { // XMLName xml.Name `xml:"game_list"` GameList []RepositoryGame `xml:"game"` }
Click to show internal directories.
Click to hide internal directories.