Posted 13 April 2016 - 10:01 PM
Only partialy tested
Takes an enviroment and reserves it to be used by other files
utilitis.importUtil(Name)–Tested
Takes a reserved enviroment and gives the user a table
settings = utilitis.importUtil('settings')–Tested
Gives you access to settings API if below CC 1.77
createUtilFromURL(url, utilName)–Untested, but should work
See createUtil. Uses URL instead of environment.
pastebin get kuFxEgTJ utilitis
lua
os.loadAPI('utilitis')
Bonus
Users below CC 1.77 can also gain access to the settings API with Utilitissettings = utilitis.importUtil('settings')
--You can now also use settings API
API
utilitis.createUtil(Name, Table)–TestedTakes an enviroment and reserves it to be used by other files
utilitis.importUtil(Name)–Tested
Takes a reserved enviroment and gives the user a table
settings = utilitis.importUtil('settings')–Tested
Gives you access to settings API if below CC 1.77
createUtilFromURL(url, utilName)–Untested, but should work
See createUtil. Uses URL instead of environment.
Edited on 14 April 2016 - 10:51 AM