Advertisement
Cokedriver

Engine.lua

May 1st, 2012
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. ----------------------------------
  2. -- Engine to make all files communicate.
  3.  
  4. -- Credit Nightcracker
  5. ----------------------------------
  6.  
  7. local BasicUI = LibStub("AceAddon-3.0"):GetAddon("BasicUI")
  8.  
  9. -- including system
  10. local addon, engine = ...
  11. engine[1] = {} -- B, functions, constants
  12. engine[2] = BasicUI.db.profile -- C, config
  13.  
  14.  
  15. BasicUI = engine --Allow other addons to use Engine
  16.  
  17. --[[
  18. This should be at the top of every file inside of the BasicUI AddOn:
  19.  
  20. local B, C = unpack(select(2, ...))
  21.  
  22. This is how another addon imports the BasicUI engine:
  23.  
  24. local B, C = unpack(BasicUI)
  25. ]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement