Pack

Represents a pack.

To read a pack from a JSON file, use getPack.

Members

Aliases

Resource
alias Resource(T) = Tuple!(T, "match", const(ResourceOptions)*, "options")

Represents a resource along with its options.

Functions

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

Get an animation from this pack. Used variant will be chosen randomly.

getOptions
const(ResourceOptions)* getOptions(string res)

Read options of the given resource.

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

Get a skeleton from this pack

glob
string[] glob(string file)

Glob search within the pack.

listCells
auto listCells()

List cells available in the pack.

Variables

description
string description;

Description of the pack.

fileOptions
ResourceOptions[string] fileOptions;

Option fields applied to specific files.

isodiVersion
string isodiVersion;

Targeted Isodi version

license
string license;

License of the pack.

name
string name;

Name of the pack.

packVersion
string packVersion;

Version of the pack.

path
string path;

Path to the pack directory in the filesystem.

Meta