diff --git a/games/minecraftgame/minecraftgame.go b/games/minecraftgame/minecraftgame.go index 8d5acd3..6d413e5 100644 --- a/games/minecraftgame/minecraftgame.go +++ b/games/minecraftgame/minecraftgame.go @@ -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{} +} diff --git a/games/skirdagame/skirdagame.go b/games/skirdagame/skirdagame.go index 6f5e095..2192604 100644 --- a/games/skirdagame/skirdagame.go +++ b/games/skirdagame/skirdagame.go @@ -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 +} diff --git a/games/steamgame/steamgame.go b/games/steamgame/steamgame.go index e33e866..df12489 100644 --- a/games/steamgame/steamgame.go +++ b/games/steamgame/steamgame.go @@ -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 +}