content

package
v0.0.0-...-ca5e079 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 20, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadAssets

func DownloadAssets(u *url.URL, dir string) error

DownloadAssets

func ExtractGzip

func ExtractGzip(path, dir string) error

ExtractGzip

Types

type File

type File struct {
	Name       string `json:"name"`
	Compressed int64  `json:"compressed"`
	Checksum   uint32 `json:"checksum"`
}

File represents a file on a Quake 3 content server.

func DownloadManifest

func DownloadManifest(url string) ([]*File, error)

DownloadManifest

func ReadManifest

func ReadManifest(dir string) (files []*File, err error)

ReadManifest

type Map

type Map struct {
	File string `json:"file"`
	Name string `json:"name"`
}

func OpenMapPack

func OpenMapPack(path string) ([]*Map, error)

OpenMapPack pk3s = zip files

func ReadMaps

func ReadMaps(dir string) (result []*Map, err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL