new RequireScript(file, fdeps, callback)
Keep track of loading status of a script and its dependencies.
Parameters:
Name | Type | Description |
---|---|---|
file |
string | Name of the script. |
fdeps |
Array.<string> | Scripts which this one depends on. |
callback |
function |
Properties:
Name | Type | Description |
---|---|---|
file |
string | Name of the script. |
loaded |
boolean | Has the script been loaded yet? |
executed |
boolean | Has the script been run? |
backdeps |
Array.<string> | Scripts which depend on this one (need this one to run first) |
fdeps |
Array.<string> | Scripts which this one depends on (it must run after them) |
callback |
function | The function to run when all this script's dependencies have run (this is the script itself) |