game

package
v0.0.0-...-e18b250 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2023 License: MIT Imports: 9 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Game

type Game struct {
	Id               int    `json:"id" yaml:"id"`
	Slug             string `json:"slug" yaml:"slug"`
	Name             string `json:"name" yaml:"name"`
	Version          string `json:"version" yaml:"version"`
	ClientExecutable string `json:"clientexecutable" yaml:"clientexecutable"`
	ServerExecutable string `json:"serverexecutable" yaml:"serverexecutable"`
}

func (*Game) LoadGame

func (game *Game) LoadGame(filepath string) (Game, error)

func (*Game) OpenFile

func (game *Game) OpenFile(gameDirectory string) error

func (*Game) Start

func (game *Game) Start(gameDirectory string) (*exec.Cmd, error)

type Games

type Games []Game

func (Games) FromId

func (games Games) FromId(id int) (Game, error)

func (*Games) LoadGames

func (games *Games) LoadGames(loadDirectory string) (Games, error)

Jump to

Keyboard shortcuts

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