--[[
	Returns all objects that cause the filter function to return true.
]]

function Registry:getFiltered(filter)
	local output = {}

	for key, object in pairs(self.objects) do
		if filter(object, key) then
			output[key] = object
		end
	end

	return output
end
