Documentation ¶
Index ¶
- type Executable
- func (executable *Executable) Args() (args []string, err error)
- func (executable *Executable) CanConnect() bool
- func (left *Executable) Equal(right Executable) bool
- func (executable *Executable) NormalizeState()
- func (executable *Executable) ParseConnectArg(ip string) ([]string, error)
- func (executable *Executable) ValidateLazy() (err error)
- type Game
- type Games
- func (games *Games) Add(game Game) (err error)
- func (games *Games) Equal(g Games) bool
- func (games Games) Games() (gamelist []Game)
- func (games *Games) Get(slug string) (game Game, err error)
- func (games *Games) HasGame(slug string) bool
- func (games *Games) Size() int
- func (games *Games) Slugs() []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Executable ¶
type Executable struct { Executable string `json:"executable" yaml:"executable"` Arguments *argument.Arguments `json:"arguments,omitempty" yaml:"arguments,omitempty"` }
func (*Executable) Args ¶
func (executable *Executable) Args() (args []string, err error)
func (*Executable) CanConnect ¶
func (executable *Executable) CanConnect() bool
func (*Executable) Equal ¶
func (left *Executable) Equal(right Executable) bool
func (*Executable) NormalizeState ¶
func (executable *Executable) NormalizeState()
func (*Executable) ParseConnectArg ¶
func (executable *Executable) ParseConnectArg(ip string) ([]string, error)
func (*Executable) ValidateLazy ¶
func (executable *Executable) ValidateLazy() (err error)
type Game ¶
type Game struct { Slug string `json:"slug" yaml:"slug"` Name string `json:"name" yaml:"name"` Client Executable `json:"client" yaml:"client"` Server *Executable `json:"server,omitempty" yaml:"server,omitempty"` }
func (*Game) CanConnectToServer ¶
func (*Game) CanStartServer ¶
func (*Game) NormalizeState ¶
func (game *Game) NormalizeState()
func (*Game) ValidateLazy ¶
type Games ¶
type Games struct {
// contains filtered or unexported fields
}
func LoadFromDirectory ¶
Click to show internal directories.
Click to hide internal directories.