Mercurial > wow > reaction
comparison ReAction.lua @ 109:410d036c43b2
- reorganize modularity file structure (part 1)
| author | Flick <flickerstreak@gmail.com> |
|---|---|
| date | Thu, 08 Jan 2009 00:57:27 +0000 |
| parents | 3699d7dad312 |
| children | ea541cc7194f |
comparison
equal
deleted
inserted
replaced
| 108:b2fb8f7dc780 | 109:410d036c43b2 |
|---|---|
| 181 return r | 181 return r |
| 182 end | 182 end |
| 183 | 183 |
| 184 function CallModuleMethod(modulename, method, ...) | 184 function CallModuleMethod(modulename, method, ...) |
| 185 local m = self:GetModule(modulename,true) | 185 local m = self:GetModule(modulename,true) |
| 186 if not m then | |
| 187 LoadAddOn(("ReAction_%s"):format(modulename)) | |
| 188 m = self:GetModule(modulename,true) | |
| 189 if m then | |
| 190 dbprint(("succesfully loaded LOD module: %s"):format(modulename)) | |
| 191 end | |
| 192 end | |
| 193 if m then | 186 if m then |
| 194 if type(m) == "table" and type(m[method]) == "function" then | 187 if type(m) == "table" and type(m[method]) == "function" then |
| 195 m[method](m,...) | 188 m[method](m,...) |
| 196 else | 189 else |
| 197 dbprint(("Bad call '%s' to %s module"):format(tostring(method),modulename)); | 190 dbprint(("Bad call '%s' to %s module"):format(tostring(method),modulename)); |
