function Trove.Clean(u)for W,O in ipairs(u._objects)do u:_cleanupObject(O[1],O[2])end table.clear(u._objects)end function Trove._cleanupObject(O,u,W)if W==FN_MARKER then u()else u[W](u)end end

function Trove:Clean()
	for _,obj in ipairs(self._objects) do
		self:_cleanupObject(obj[1], obj[2])
	end
	table.clear(self._objects)
end


function Trove:_cleanupObject(object, cleanupMethod)
	if cleanupMethod == FN_MARKER then
		object()
	else
		object[cleanupMethod](object)
	end
end

