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{
|
var garrysmodGame = SteamGame{
|
||||||
GameId: "garrysmod",
|
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 {
|
type SteamGame struct {
|
||||||
GameId string
|
GameId string
|
@ -1,14 +1,14 @@
|
|||||||
package gameUtils
|
package game
|
||||||
|
|
||||||
func FindGameByID(id string, list Games) SteamGame {
|
// func findGameByID(id string) SteamGame {
|
||||||
for _, game := range list.SteamGames {
|
// for _, game := range GamesList {
|
||||||
if game.GameId == id {
|
// if game.GameId == id {
|
||||||
return game
|
// return game
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
var temp SteamGame = SteamGame{}
|
// var temp SteamGame = SteamGame{}
|
||||||
return temp
|
// return temp
|
||||||
}
|
// }
|
||||||
|
|
||||||
// func findSteamGameByID(id string) SteamGame {
|
// func findSteamGameByID(id string) SteamGame {
|
||||||
// for _, game := range localGames.St {
|
// for _, game := range localGames.St {
|
||||||
@ -20,6 +20,8 @@ func FindGameByID(id string, list Games) SteamGame {
|
|||||||
// return game
|
// return game
|
||||||
// }
|
// }
|
||||||
|
|
||||||
|
func FindGameByID() {}
|
||||||
|
|
||||||
func GetJSGameInterface(game SteamGame) JSGameInterface {
|
func GetJSGameInterface(game SteamGame) JSGameInterface {
|
||||||
newInterface := JSGameInterface{
|
newInterface := JSGameInterface{
|
||||||
GameID: game.GameId,
|
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