Struct ResourceList

Resource list contains embedded resources and paths to external resource directories

struct ResourceList

Properties

TypeNameDescription
const(string[])
resourceDirs[get] Get resource directory paths
string[]
resourceDirs[set] Set resource directory paths array (only existing dirs will be added)

Methods

NameDescription
clear ()
embed () Embed all resources from list
embedFromMemory (filename, content) Embed a byte array (such as string) from memory with a fictional filename
embedOne () Embed one particular file by its filename
getEmbedded (filename) Get embedded resource by its full filename (without prefix).
getPathByID (id) Get resource full path.
setResourceDirs (paths) Set resource directory paths as variable number of parameters