atelier.common.resource

Resource

Members

Classes

DataCache
class DataCache(T)
Undocumented in source.
ResourceCache
class ResourceCache(T)

Internal cache storing all loaded resources.

Functions

canFetch
bool canFetch(string name)

Is an object of this name and of this type stored ?

canFetchPack
bool canFetchPack(string name)

Is an set of this name and of this type stored ?

fetch
T fetch(string name)

Returns a stored resource.

fetchAllTuples
Tuple!(T, string)[] fetchAllTuples()

Returns everything of this type as tuples of the resources + their name.

fetchPack
T[] fetchPack(string name)

Returns all resources of a set.

fetchPackNames
string[] fetchPackNames(string name)

Returns all resources' name of a set.

fetchPackTuples
Tuple!(T, string)[] fetchPackTuples(string name)

Returns all resources of a set as a tuple of the resource + its name.

fetchPrototype
T fetchPrototype(string name)

Returns a stored resource.

getResourceCache
void getResourceCache()
Undocumented in source. Be warned that the author may not have intended to support it.
setResourceCache
void setResourceCache(ResourceCache!T cache)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta

License

Zlib

Authors

Enalye