function Trove.Construct(X,q,...)if X._cleaning then error("\067\097\110\110\111\116 \099\097\108\108 \116\114\111\118\101\058\067\111\110\115\116\114\117\099\116\040\041 \119\104\105\108\101 \099\108\101\097\110\105\110\103",2)end local M=nil local C=type(q)if C=="\116\097\098\108\101"then M=q.new(...)elseif C=="\102\117\110\099\116\105\111\110"then M=q(...)end return X:Add(M)end

function Trove:Construct(class, ...)
	if self._cleaning then
		error("Cannot call trove:Construct() while cleaning", 2)
	end
	local object = nil
	local t = type(class)
	if t == "table" then
		object = class.new(...)
	elseif t == "function" then
		object = class(...)
	end
	return self:Add(object)
end
