Documentation
¶
Index ¶
Constants ¶
const CDNURL = "http://cdn.urbanterror.info/urt/"
const CDNURL = "http://cdn.urbanterror.info/urt/%s/%s/q3ut4/%s"
Variables ¶
var ( // ManifestPath is the path to the manifest. ManifestPath string // DownloadPath points to the destination directory for download. DownloadPath = flag.String([]string{"d", "-dest"}, "./", "Path to destination directory") // Version prints the version of yaurtww Version = flag.Bool([]string{"v", "-version"}, false, "Print the name and version") )
Functions ¶
func RequiredFlag ¶
RequiredFlag is a shim to print error messages for flags.
Types ¶
type Manifest ¶
type Manifest struct {
Version string
Assets []ManifestAsset
}
Manifest is the manifest provided by the urban terror site, and describes what assets are required and states the version of the game.
func ReadManifest ¶
ReadManifest reads the stored manifest and returns it as Manifest
type ManifestAsset ¶
ManifestAsset is a single manifest, and contains a checksum and filename.
func (ManifestAsset) Download ¶
func (asset ManifestAsset) Download(url string) (err error)
Download downloads the file.