function Registry.getFiltered(U,v)local L={}for U,C in pairs(U.objects)do if v(C,U)then L[U]=C end end return L end
--[[
	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
