sharedutils/gameUtils/gameTypes.go

38 lines
671 B
Go
Raw Normal View History

2022-10-27 20:31:39 +00:00
package gameUtils
2022-10-27 18:05:45 +00:00
type SteamGame struct {
2022-11-03 20:12:26 +00:00
GameId string
SteamId string
Args []Argument
OptionalArgs []Argument
Assets GameInterfaceAssets
Platforms map[string]bool
2022-10-27 18:05:45 +00:00
}
type GameInterfaceAssets struct {
Title string
2022-10-28 15:23:04 +00:00
Icon string
2022-10-27 18:05:45 +00:00
Description string
2022-11-07 12:06:45 +00:00
Backgrounds []GameInterfaceBackground
}
type GameInterfaceBackground struct {
File string
2022-10-27 18:05:45 +00:00
}
type Games struct {
SteamGames []SteamGame
}
type JSGameInterface struct {
GameID string `json:"gameId"`
Title string `json:"title"`
2022-10-28 15:23:04 +00:00
Icon string `json:"icon"`
2022-10-27 18:05:45 +00:00
Description string `json:"description"`
}
2022-11-03 20:12:26 +00:00
type Argument struct {
2022-11-07 12:06:45 +00:00
Body string
Value string
2022-11-03 20:12:26 +00:00
}