From 143eed4221526d05ea6fe6f8476d10ebf2487b30 Mon Sep 17 00:00:00 2001 From: cyber-dream Date: Fri, 3 Feb 2023 18:11:13 +0300 Subject: [PATCH] Add versions in minecraft game --- games/minecraftgame/minecraftgame.go | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/games/minecraftgame/minecraftgame.go b/games/minecraftgame/minecraftgame.go index 6d413e5..4999615 100644 --- a/games/minecraftgame/minecraftgame.go +++ b/games/minecraftgame/minecraftgame.go @@ -5,9 +5,10 @@ import "git.gregbrzezinski.com/Skirda/skirdaGoLauncher/sharedutils/games/skirdag const gameType = "minecraft" type MinecraftGame struct { - SkirdaGameId string - Assets skirdagame.GameUIAssets - // CurrentVersion string + SkirdaGameId string + Assets skirdagame.GameUIAssets + Versions []string + CurrentVersion string } func (game MinecraftGame) GetSkirdaGameId() string { @@ -29,3 +30,11 @@ func (game MinecraftGame) GetType() string { func (game MinecraftGame) GetArguments() skirdagame.Arguments { return skirdagame.Arguments{} } + +func (game MinecraftGame) GetVersions() []string { + return game.Versions +} + +func (game MinecraftGame) GetCurrentVersions() string { + return game.CurrentVersion +}