PackList

Represents a pack list.

Destructor

~this
~this()
Undocumented in source.

Alias This

packList

Members

Aliases

GlobResult
alias GlobResult(T) = Tuple!(T[], "matches", Pack*, "pack")

Result of globbing functions.

Resource
alias Resource = Pack.Resource
Undocumented in source.

Functions

clearCache
void clearCache()

Clear resource cache. Call when the list contents were changed or reordered.

getAnimation
Resource!(AnimationPart[]) getAnimation(string name, uint frameCount)

Load the given animation.

getSkeleton
Resource!(SkeletonNode[]) getSkeleton(string name)

Load the given skeleton.

listCells
auto listCells()

List cells available in all the packs.

packGlob
GlobResult!string packGlob(string path)

List matching files in the first matching pack.

randomGlob
Resource!string randomGlob(string path, RNG rng)

Get a random resource under a file matching the pattern.

Static functions

make
PackList make()

Create a pack list for the current renderer.

make
PackList make(Pack[] packs)

Create a pack list for the current renderer.

Variables

packList
Pack[] packList;

Underlying pack list.

Meta