/Tukui/core/init.lua

http://github.com/Asphyxia/Tukui · Lua · 19 lines · 5 code · 4 blank · 10 comment · 0 complexity · 001f280ae1387890a085dfea585b4151 MD5 · raw file

  1. ----------------------------------------------------------------
  2. -- initiation of tukui
  3. ----------------------------------------------------------------
  4. -- including system
  5. local addon, engine = ...
  6. engine[1] = {} -- T, functions, constants, variables
  7. engine[2] = {} -- C, config
  8. engine[3] = {} -- L, localization
  9. Tukui = engine -- Allow other addons to use Engine
  10. ---------------------------------------------------------------------------------
  11. -- This should be at the top of every file inside of the Tukui AddOn:
  12. -- local T, C, L = unpack(select(2, ...))
  13. -- This is how another addon imports the Tukui engine:
  14. -- local T, C, L = unpack(Tukui)
  15. ---------------------------------------------------------------------------------