class
ResourceSystem
public class ResourceSystem Constructors
ResourceSystem() Methods
T Get(Int32 identifier) Get a cached resource by its hash.
identifier — Resource hash to look up. T Get(String filepath) Get a cached resource by its file path.
filepath — File path to the resource. Boolean TryGet(String filepath, T resource) Try to get a cached resource by its file path.
filepath — File path to the resource. resource — The retrieved resource, if any. returns — True if resource was retrieved successfully.
IEnumerable<T> GetAll() Get all cached resources of given type.
IEnumerable<T> GetAll(String filepath, Boolean recursive = True) Get all cached resources of given type in a specific folder.
filepath — The path of the folder to check. recursive — Whether or not to check folders within the specified folder.