Compare commits

..

No commits in common. "8570a59cabd72b79ff9b550ac9fc62496668e028" and "4789084da2668c017317b401464f148a0d6ea03e" have entirely different histories.

View File

@ -50,7 +50,7 @@ function api.register(address, ctype, proxy, doc)
end
components[address] = {address = address, type = ctype, doc = doc or {}}
components[address].rawproxy = proxy
components[address].proxy = {address = address, type = ctype, slot = -1}
components[address].proxy = {}
for k,v in pairs(proxy) do
if type(v) == "function" then
components[address].proxy[k] = setmetatable({name=k,address=address}, componentCallback)