Loader.load

Loads multiple resources in one fell swoop using an associated array.

  1. T load(string path, string name)
  2. void load(string[string] paths)
    class Loader
    @safe
    void
    load
    (
    T
    )
    (
    immutable string[string] paths
    )

Parameters

T

Data type.

paths string[string]

Paths and names for loading resources.

Throws

LoadException if the loader determines that the file does not exist. There may be other errors while loading, see their documentation, for example Image.

Examples

loader.load!Image([
    "op1" : "image.png",
    "op2" : "image2.png"
]);

Meta