add get arguments
This commit is contained in:
parent
5c7a5256bd
commit
877fb8ddf6
@ -25,3 +25,7 @@ func (game MinecraftGame) GetLaunchArgs() []string {
|
||||
func (game MinecraftGame) GetType() string {
|
||||
return gameType
|
||||
}
|
||||
|
||||
func (game MinecraftGame) GetArguments() skirdagame.Arguments {
|
||||
return skirdagame.Arguments{}
|
||||
}
|
||||
|
@ -7,6 +7,7 @@ type SkirdaGame interface {
|
||||
GetUIAssets() GameUIAssets
|
||||
GetLaunchArgs() []string
|
||||
GetType() string
|
||||
GetArguments() Arguments
|
||||
}
|
||||
|
||||
type GameUIAssets struct {
|
||||
@ -30,3 +31,13 @@ func (games SkirdaGames) FindGameByID(gameId string) (SkirdaGame, error) {
|
||||
}
|
||||
return nil, errors.New("")
|
||||
}
|
||||
|
||||
type Argument struct {
|
||||
Body string
|
||||
Value string
|
||||
}
|
||||
|
||||
type Arguments struct {
|
||||
Required []Argument
|
||||
Optional []Argument
|
||||
}
|
||||
|
@ -8,6 +8,7 @@ type SteamGame struct {
|
||||
SkirdaGameId string
|
||||
SteamId string
|
||||
Assets skirdagame.GameUIAssets
|
||||
Arguments skirdagame.Arguments
|
||||
// CurrentVersion string
|
||||
}
|
||||
|
||||
@ -26,3 +27,7 @@ func (game SteamGame) GetLaunchArgs() []string {
|
||||
func (game SteamGame) GetType() string {
|
||||
return gameType
|
||||
}
|
||||
|
||||
func (game SteamGame) GetArguments() skirdagame.Arguments {
|
||||
return game.Arguments
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user