This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package.preload["exploits"] = function () | |
| local clases = {} | |
| function class(name) | |
| return function(tab) | |
| if not tab then return clases[name] end | |
| tab.__index, tab.__classname = tab, name | |
| if tab.call then tab.__call = tab.call end | |
| setmetatable(tab, tab) | |
| clases[name], _G[name] = tab, tab | |
| return tab |