sharedutils/models/games/gameTypes.go

42 lines
731 B
Go
Raw Normal View History

2023-01-05 03:31:53 +00:00
package gamesModels
2022-10-27 18:05:45 +00:00
type SteamGame struct {
2023-01-05 03:31:53 +00:00
GameId string //TODO: To UUID
2022-11-03 20:12:26 +00:00
SteamId string
Args []Argument
OptionalArgs []Argument
Assets GameInterfaceAssets
Platforms map[string]bool
2022-10-27 18:05:45 +00:00
}
2023-01-05 03:31:53 +00:00
type LocalGame struct {
GameId string
}
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
}