function Registry.removeAll(G)for G,z in pairs(G.objects)do z:destroy()end G.objects={}end return Registry
--[[
    Calls destroy on all objects and clears the entire registry
]]
function Registry:removeAll()
	for _, object in pairs(self.objects) do
		object:destroy()
	end
	self.objects = {}
end

return Registry
