function Registry.add(D,F,...)if D.objects[F]then warn(string.format("\091\082\101\103\105\115\116\114\121\093 - \111\098\106\101\099\116 \097\108\114\101\097\100\121 \101\120\105\115\116\115 \102\111\114 \107\101\121 \037\115",tostring(F)))D:remove(F)end local t=D.class.new(F,...)D.objects[F]=t return t end

function Registry:add(key, ...)
	if self.objects[key] then
		warn(string.format("[Registry] - object already exists for key %s", tostring(key)))
		self:remove(key)
	end
	local object = self.class.new(key, ...)
	self.objects[key] = object
	return object
end
