Compare commits
No commits in common. "ceb5cac7eafabc5d06c09a76ccf669451a1c07ab" and "5491d667c280734779aaa8d2c27359285efc7b9a" have entirely different histories.
ceb5cac7ea
...
5491d667c2
@ -1,4 +1,4 @@
|
||||
package gameUtils
|
||||
package game
|
||||
|
||||
var garrysmodGame = SteamGame{
|
||||
GameId: "garrysmod",
|
||||
@ -24,4 +24,4 @@ var openarena = SteamGame{
|
||||
},
|
||||
}
|
||||
|
||||
var SteamFakeGamesList = []SteamGame{garrysmodGame, openarena}
|
||||
var FakeGamesList = []SteamGame{garrysmodGame, openarena}
|
@ -1,4 +1,4 @@
|
||||
package gameUtils
|
||||
package game
|
||||
|
||||
type SteamGame struct {
|
||||
GameId string
|
@ -1,14 +1,14 @@
|
||||
package gameUtils
|
||||
package game
|
||||
|
||||
func FindGameByID(id string, list Games) SteamGame {
|
||||
for _, game := range list.SteamGames {
|
||||
if game.GameId == id {
|
||||
return game
|
||||
}
|
||||
}
|
||||
var temp SteamGame = SteamGame{}
|
||||
return temp
|
||||
}
|
||||
// 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 {
|
||||
@ -20,6 +20,8 @@ func FindGameByID(id string, list Games) SteamGame {
|
||||
// return game
|
||||
// }
|
||||
|
||||
func FindGameByID() {}
|
||||
|
||||
func GetJSGameInterface(game SteamGame) JSGameInterface {
|
||||
newInterface := JSGameInterface{
|
||||
GameID: game.GameId,
|
@ -1,5 +0,0 @@
|
||||
package sessionUtils
|
||||
|
||||
func GetJSSessionInterface(s Session) JSSessionInterface {
|
||||
return JSSessionInterface{}
|
||||
}
|
@ -1,17 +0,0 @@
|
||||
package sessionUtils
|
||||
|
||||
import (
|
||||
"time"
|
||||
)
|
||||
|
||||
type Session struct {
|
||||
expirateAt time.Time
|
||||
gameId string
|
||||
}
|
||||
|
||||
type JSSessionInterface struct {
|
||||
GameID string `json:"gameId"`
|
||||
Title string `json:"title"`
|
||||
Image string `json:"image"`
|
||||
Description string `json:"description"`
|
||||
}
|
Loading…
Reference in New Issue
Block a user