Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidLogLine = errors.New("invalid log line")
View Source
var ErrNoEngineFound = errors.New("no supported engine found")
Functions ¶
func FilterDedupe ¶ added in v0.0.22
Types ¶
type EngineFileInfo ¶ added in v0.0.12
type EngineFileInfo struct {
Name string
Data []byte
MediaType string // audio/ogg, audio/wav, audio/mpeg
Ext string // .ogg, .wav, .mp3
SampleRate int
Channels int
BitDepth int
}
func NewEngineFileInfo ¶ added in v0.0.12
func NewEngineFileInfo(path string, data []byte) *EngineFileInfo
type EngineV2 ¶ added in v0.0.14
type EngineV2 interface {
Name() string
IsEngine(dir string) bool
//AddGame Will only work on games that have already been installed/ not the launcher
// WIll need to set game fields based off the gr runner so we know what to run when we call run game
AddGame(ctx context.Context, filepath string) (*game.Game, error)
InstallHook(ctx context.Context, game *game.Game) error
RunGame(ctx context.Context, game *game.Game) (*gr.Process, error)
StopGame(ctx context.Context, proc *gr.Process) (*gr.Process, error)
// GetFile will not be supported on TR
GetFile(g *game.Game, file string) (*EngineFileInfo, error)
FollowGameText(ctx context.Context, game *game.Game, opts ...FollowGameOptions) (chan Line, error)
Shutdown() error
ManagedGames() []*game.Game
GetTextractor(game *game.Game) *textractor.Client // or nil for other engines
}
type FollowGameOptions ¶ added in v0.0.14
Click to show internal directories.
Click to hide internal directories.