WeakAuras.Mixin

This commit is contained in:
Bunny67
2020-09-06 11:33:12 +03:00
parent e9957582cb
commit 47e81f3d70
10 changed files with 48 additions and 30 deletions
+10
View File
@@ -75,3 +75,13 @@ function WeakAuras.CountWagoUpdates()
-- XXX this is to work around the Companion app trying to use our stuff!
return 0
end
function WeakAuras.Mixin(object, ...)
for i = 1, select("#", ...) do
local mixin = select(i, ...)
for k, v in pairs(mixin) do
object[k] = v
end
end
return object
end