Module fuses
A list of fuses.
This module scanns all the files in the repository and manages all the fuses found in a list of Fuse objects.
local fuses = require("Shaderfuse/fuses") fuses.fetch(user_config.pathToRepository..'Shaders/',false) for i, fuse in ipairs(fuses.list) do fuse:read() ...
Dependencies: bmd.readdir
Functions
| get_fuse (category, fusename) | Get a fuse object form the list of fuses. |
| fetch (path[, details=false]) | Initialize the fuses structure. |
Tables
| fuses | Local structure to manage the Fuse objects. |
Functions
- get_fuse (category, fusename)
-
Get a fuse object form the list of fuses.
Searches in the list of fuses for an object of category
categoryand the namefusename.Parameters:
- category string The category (folder name in the Shaders subdirectory) to search in
- fusename string The name (file name without suffix) of the fuse to search for
Returns:
-
Fuse
the Fuse object;
nilif not found - fetch (path[, details=false])
-
Initialize the
fusesstructure.Traverses the
pathand searches for Fuses to add them to thefuses.list.Parameters:
- path string The path to search through for fuse files.
- details bool true, if the fuses should be read for details (default false)