function Registry.getFiltered(W,A)local X={}for W,Z in pairs(W.objects)do if A(Z,W)then X[W]=Z end end return X end

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
