File hp/manager/ResourceManager.lua
Functions
M:addPath (path) | Add the resource directory path. |
M:clearPaths () | Clear the resource directory paths. |
M:getFilePath (fileName, defaultPath) | Returns the filePath from fileName. |
M:readFile (fileName) | Returns the file data. |
M:removePath (path) | Remove the resource directory path. |
Tables
ResourceManager | This is a class to manage the resources. |
Functions
- M:addPath (path)
-
Add the resource directory path.
Parameters
- path:
- M:clearPaths ()
- Clear the resource directory paths.
- M:getFilePath (fileName, defaultPath)
-
Returns the filePath from fileName.
Parameters
- fileName:
- defaultPath:
- M:readFile (fileName)
-
Returns the file data.
Parameters
- fileName:
- M:removePath (path)
-
Remove the resource directory path.
Parameters
- path: