Module source

Source
Expand description

The Source trait and implementations.

Structs§

FilesystemSource
A Source that loads packages from the filesystem. This is a good source to use for development, or if you don’t care about packaging your data files into an archive.
SourceManager
Holds a list of Source objects and selects one to use when loading a package
ZipFolderSource
A Source that loads packages from zip/pk3 files in the filesystem. This is a good source to use for release builds. Each zip/pk3 file is a different package.

Enums§

PackageError
An error returned when failing to access a package in a Source
TrustLevel
Trust settings for a given Source

Traits§

Source
Represents a location that packages can be loaded from. For example, you could load packages from the filesystem (via FilesystemSource, or out of a special archive format.

Type Aliases§

SourceId
A numeric ID used to refer to a Source.