Compare commits
No commits in common. "d873fce12a665cfa9390dc6f6c995c8a29788e49" and "dfb6be1fba6d86275cbc7339edfbdc819b1240a8" have entirely different histories.
d873fce12a
...
dfb6be1fba
@ -7,7 +7,7 @@ var garrysmodGame = SteamGame{
|
||||
Platforms: map[string]bool{"linux": true},
|
||||
Assets: GameInterfaceAssets{
|
||||
Title: "Garry's Mod",
|
||||
Icon: "icon.png",
|
||||
Image: "gmod.png",
|
||||
Description: "",
|
||||
},
|
||||
}
|
||||
@ -19,7 +19,7 @@ var openarena = SteamGame{
|
||||
Args: []string{},
|
||||
Assets: GameInterfaceAssets{
|
||||
Title: "Open Arena",
|
||||
Icon: "icon.jpg",
|
||||
Image: "openarena.jpg",
|
||||
Description: "asdadasd",
|
||||
},
|
||||
}
|
||||
|
@ -10,7 +10,7 @@ type SteamGame struct {
|
||||
|
||||
type GameInterfaceAssets struct {
|
||||
Title string
|
||||
Icon string
|
||||
Image string
|
||||
Description string
|
||||
}
|
||||
|
||||
@ -21,6 +21,6 @@ type Games struct {
|
||||
type JSGameInterface struct {
|
||||
GameID string `json:"gameId"`
|
||||
Title string `json:"title"`
|
||||
Icon string `json:"icon"`
|
||||
Image string `json:"image"`
|
||||
Description string `json:"description"`
|
||||
}
|
||||
|
@ -28,7 +28,7 @@ func GetJSGameInterface(game SteamGame) JSGameInterface {
|
||||
newInterface := JSGameInterface{
|
||||
GameID: game.GameId,
|
||||
Title: game.Assets.Title,
|
||||
Icon: game.Assets.Icon,
|
||||
Image: game.Assets.Image,
|
||||
Description: game.Assets.Description,
|
||||
}
|
||||
return newInterface
|
||||
|
@ -5,12 +5,8 @@ import (
|
||||
)
|
||||
|
||||
type Session struct {
|
||||
GameId string
|
||||
Icon string
|
||||
Title string
|
||||
Status string
|
||||
Version string
|
||||
Expires time.Time
|
||||
GameId string
|
||||
}
|
||||
|
||||
type JSSessionInterface struct {
|
||||
|
@ -1,11 +1,13 @@
|
||||
package sessionUtils
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
)
|
||||
import "encoding/json"
|
||||
|
||||
func ConvertServerSessionsToJSON(s Session) []byte {
|
||||
s_json, err := json.Marshal(s)
|
||||
_ = err //TODO: Check Errors
|
||||
return s_json
|
||||
}
|
||||
|
||||
func GetJSSessionInterface(s Session) JSSessionInterface {
|
||||
return JSSessionInterface{}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user