Compare commits
No commits in common. "c035b05b4690c74c04a4c78294a5a1d592ece38c" and "672d491e60e7a7c8cb62ea0e0fbf4771c65b5beb" have entirely different histories.
c035b05b46
...
672d491e60
@ -3,7 +3,12 @@ package gameUtils
|
|||||||
var garrysmodGame = SteamGame{
|
var garrysmodGame = SteamGame{
|
||||||
GameId: "garrysmod",
|
GameId: "garrysmod",
|
||||||
SteamId: "4000",
|
SteamId: "4000",
|
||||||
Args: []Argument{},
|
Args: []Argument{
|
||||||
|
Argument{
|
||||||
|
Body: "+connect",
|
||||||
|
Value: "127.0.0.1:27015",
|
||||||
|
},
|
||||||
|
},
|
||||||
Platforms: map[string]bool{
|
Platforms: map[string]bool{
|
||||||
"linux": true,
|
"linux": true,
|
||||||
"windows": true,
|
"windows": true,
|
||||||
@ -16,9 +21,10 @@ var garrysmodGame = SteamGame{
|
|||||||
}
|
}
|
||||||
|
|
||||||
var openarena = SteamGame{
|
var openarena = SteamGame{
|
||||||
GameId: "half-life-1",
|
GameId: "openarena",
|
||||||
SteamId: "70",
|
SteamId: "",
|
||||||
Args: []Argument{},
|
//Executable: "/usr/games/openarena",
|
||||||
|
//Args: []string{},
|
||||||
Assets: GameInterfaceAssets{
|
Assets: GameInterfaceAssets{
|
||||||
Title: "Open Arena",
|
Title: "Open Arena",
|
||||||
Icon: "icon.png",
|
Icon: "icon.png",
|
||||||
@ -26,4 +32,16 @@ var openarena = SteamGame{
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
var SteamFakeGamesList = []SteamGame{garrysmodGame, openarena}
|
var minecraft = SteamGame{
|
||||||
|
GameId: "minecraft",
|
||||||
|
SteamId: "",
|
||||||
|
//Args: []string{},
|
||||||
|
Assets: GameInterfaceAssets{
|
||||||
|
Title: "Minecraft",
|
||||||
|
Icon: "icon.png",
|
||||||
|
Description: "Minecraft Game",
|
||||||
|
},
|
||||||
|
Platforms: map[string]bool{},
|
||||||
|
}
|
||||||
|
|
||||||
|
var SteamFakeGamesList = []SteamGame{garrysmodGame, openarena, minecraft}
|
||||||
|
@ -2,8 +2,6 @@ package sessionUtils
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"git.gregbrzezinski.com/Skirda/skirdaGoBackend/skirdagoutils/gameUtils"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type Session struct {
|
type Session struct {
|
||||||
@ -13,7 +11,6 @@ type Session struct {
|
|||||||
Status string
|
Status string
|
||||||
Version string
|
Version string
|
||||||
Expires time.Time
|
Expires time.Time
|
||||||
Arguments []gameUtils.Argument
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type Sessions struct {
|
type Sessions struct {
|
||||||
|
@ -3,8 +3,6 @@ package sessionUtils
|
|||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"git.gregbrzezinski.com/Skirda/skirdaGoBackend/skirdagoutils/gameUtils"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func ConvertServerSessionsToJSON(s Session) []byte {
|
func ConvertServerSessionsToJSON(s Session) []byte {
|
||||||
@ -13,25 +11,18 @@ func ConvertServerSessionsToJSON(s Session) []byte {
|
|||||||
return s_json
|
return s_json
|
||||||
}
|
}
|
||||||
|
|
||||||
var FakeSessions = []Session{
|
var FakeSessions = Sessions{
|
||||||
|
Sessions: []Session{
|
||||||
{
|
{
|
||||||
GameId: "garrysmod",
|
GameId: "garrysmod",
|
||||||
Icon: "",
|
Title: "Test 1",
|
||||||
Title: "Regular Skirda Gmod server",
|
|
||||||
Status: "Super fake session",
|
Status: "Super fake session",
|
||||||
Version: "",
|
|
||||||
Expires: time.Time{},
|
Expires: time.Time{},
|
||||||
Arguments: []gameUtils.Argument{
|
|
||||||
{
|
|
||||||
Body: "+connect",
|
|
||||||
Value: "127.0.0.1:27015",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
GameId: "half-lide-1",
|
GameId: "beamng",
|
||||||
Title: "Half-Life 1 МЯСО",
|
Title: "Test 2",
|
||||||
Status: "Retro shit",
|
Status: "Super fake session 2",
|
||||||
Expires: time.Time{},
|
Expires: time.Time{},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -41,4 +32,5 @@ var FakeSessions = []Session{
|
|||||||
Version: "1.54.7",
|
Version: "1.54.7",
|
||||||
Expires: time.Time{},
|
Expires: time.Time{},
|
||||||
},
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user