diff --git a/game/gamesTypes.go b/game/gamesTypes.go deleted file mode 100644 index 6e33f63..0000000 --- a/game/gamesTypes.go +++ /dev/null @@ -1,19 +0,0 @@ -package gamestypes - -type SteamGame struct { - GameId string - SteamId string - Args []string - Assets GameInterfaceAssets - Platforms map[string]bool -} - -type GameInterfaceAssets struct { - Title string - Image string - Description string -} - -type Games struct { - SteamGames []SteamGame -} diff --git a/game/gamesUtils.go b/game/gamesUtils.go deleted file mode 100644 index d4d97c8..0000000 --- a/game/gamesUtils.go +++ /dev/null @@ -1,71 +0,0 @@ -package game - -// type SteamGame struct { -// GameId string -// SteamId string -// Args []string -// Assets GameInterfaceAssets -// Platforms map[string]bool -// } - -// type Games struct { -// SteamGames []SteamGame -// } - -// type GameInterfaceAssets struct { -// Title string -// Image string -// Description string -// } - -// type JSGameInterface struct { -// GameID string `json:"gameId"` -// Title string `json:"title"` -// Image string `json:"image"` -// Description string `json:"description"` -// } - -// var GamesList = []SteamGame{garrysmodGame, openarena} - -// func GetJSGameInterface(game SteamGame) JSGameInterface { -// newInterface := JSGameInterface{ -// GameID: game.GameId, -// Title: game.Assets.Title, -// Image: game.Assets.Image, -// Description: game.Assets.Description, -// } - -// return newInterface -// } - -// func findGameByID(id string) SteamGame { -// for _, game := range GamesList { -// if game.GameId == id { -// return game -// } -// } -// var temp SteamGame = SteamGame{} -// return temp -// } - -// func findSteamGameByID(id string) SteamGame { -// for _, game := range localGames.St { -// if game.GameId == id { -// return game -// } -// } -// var game SteamGame = SteamGame{} -// return game -// } - -func FindGameByID() {} - -func GetJSGameInterface(game SteamGame) JSGameInterface { - newInterface := JSGameInterface{ - GameID: game.GameId, - Title: game.Assets.Title, - Image: game.Assets.Image, - Description: game.Assets.Description, - } - return newInterface -}