Add druid with context, get component druid as helper.get_druid(context)

This commit is contained in:
Insality
2019-12-05 22:39:35 +03:00
parent da27d6edd8
commit b8dec4826f
12 changed files with 51 additions and 30 deletions

View File

@@ -148,4 +148,10 @@ function M.get_pivot_offset(pivot)
end
function M.get_druid(self)
local context = { _context = self }
return setmetatable(context, { __index = self.context.druid })
end
return M