mirror of
https://github.com/Insality/druid.git
synced 2025-09-27 18:12:19 +02:00
Add druid with context, get component druid as helper.get_druid(context)
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user