Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function IndexingWithInheritance( self, Index )
- local TempIndex = self.__index
- self.__index = self
- setmetatable( self, nil )
- if( self[Index] ) then
- return self
- end
- self.__index = TempIndex
- setmetatable( self, self )
- for k, v in pairs( self._Parents ) do
- local Module = Framework.Modules.Get( v )
- if( Module[Index] != nil ) then
- return Module[Index]
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement