game

package
v0.0.0-...-6f03ccd Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Default = Game{}

Default game instance at the current working directory.

Functions

This section is empty.

Types

type Game

type Game struct {
	Path string
}

Game represents a game instance at a given path.

func At

func At(path string) Game

At returns the game instance at the given path.

func (Game) Available

func (g Game) Available() ([]pkg.Package, error)

Available mods.

func (Game) BasePath

func (g Game) BasePath() (string, error)

BasePath returns the resolved path of the game.

func (Game) Find

func (g Game) Find(name string) []pkg.Package

Find matching mods with (part of) the given name.

func (Game) FromSource

func (g Game) FromSource(source string) (pkg.Package, error)

FromSource returns a mod that represents the source object

func (Game) Get

func (g Game) Get(name string) (pkg.Package, error)

Get mod by name.

func (Game) Installed

func (g Game) Installed() ([]pkg.Package, error)

Installed mods.

Jump to

Keyboard shortcuts

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