Advertisement
TechTycho

effects/init.lua

Dec 29th, 2022
864
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.25 KB | None | 0 0
  1. local M = {}
  2.  
  3. local effects = {
  4.   { require("effects.tagswitch"), "tagswitch" }
  5. }
  6.  
  7. M.request_effect = function (name)
  8.   for _, e in ipairs(effects) do
  9.     if name == e[2] then
  10.       return e[1]
  11.     end
  12.   end
  13.  
  14.   return false
  15. end
  16.  
  17. return M
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement