Documentation ¶
Index ¶
Constants ¶
View Source
const ( PreviewTypePixelPerfect = PreviewType(".png") PreviewTypeLargeJPEG = PreviewType(".jpg") PreviewTypeHeightmap = PreviewType("_h.png") )
Variables ¶
Functions ¶
func FetchMapPreview ¶
func FetchMapPreview(hash string, t PreviewType) (image.Image, error)
Types ¶
type MapInfo ¶
type MapInfo struct { MapName string `json:"map_name"` MapSha string `json:"map_sha"` MapSize string `json:"map_size"` MapPlayers int `json:"map_players"` MapSpectators int `json:"map_spectators"` MapScavengers int `json:"map_scavengers"` MapOilwells int `json:"map_oilwells"` MapAuthor string `json:"map_author"` MapLicense string `json:"map_license"` MapType string `json:"map_type"` MapScrX1 int `json:"map_scr_x1"` MapScrY1 int `json:"map_scr_y1"` MapScrX2 int `json:"map_scr_x2"` MapScrY2 int `json:"map_scr_y2"` MapAsymmetrical bool `json:"map_asymmetrical"` }
func FetchOnePhobosInfo ¶
type PreviewType ¶
type PreviewType string
Click to show internal directories.
Click to hide internal directories.