Add versions in minecraft game

This commit is contained in:
cyber-dream 2023-02-03 18:11:13 +03:00
parent ab2afeb177
commit 143eed4221

View File

@ -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
}