Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DemoPathFromArgs ¶
func DemoPathFromArgs() string
DemoPathFromArgs returns the value of the -demo command line flag. Panics if an error occurs.
func GetMapRadar ¶
GetMapRadar fetches the radar image for a specific map version from `https://radar-overviews.csgo.saiko.tech/<map>/<crc>/radar.png`. Panics if any error occurs.
func RedirectStdout ¶
func RedirectStdout(f func())
RedirectStdout redirects standard output to dev null. Panics if an error occurs.
Types ¶
type Map ¶
type Map struct { PosX float64 `json:"pos_x,string"` PosY float64 `json:"pos_y,string"` Scale float64 `json:"scale,string"` }
Map represents a CS:GO map. It contains information required to translate in-game world coordinates to coordinates relative to (0, 0) on the provided map-overviews (radar images).
func GetMapMetadata ¶
GetMapMetadata fetches metadata for a specific map version from `https://radar-overviews.csgo.saiko.tech/<map>/<crc>/info.json`. Panics if any error occurs.