--[[
    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
