/// <summary> /// Fixes up the <see cref="CollectionItemIdentifiers"/> of collections contained in the given asset. by generating new ids if there are any duplicate. /// </summary> /// <param name="assetItem">The asset to analyze.</param> /// <param name="logger">A logger to output fixed entries.</param> /// <remarks>This method doesn't handle collections in derived assets that will be desynchronized afterwards.</remarks> public static void FixupItemIds(AssetItem assetItem, ILogger logger) { var visitor = new CollectionItemIdsAnalysisVisitor(assetItem, logger); visitor.Visit(assetItem); }
/// <summary> /// Fixes up the <see cref="CollectionItemIdentifiers"/> of collections contained in the given asset. by generating new ids if there are any duplicate. /// </summary> /// <param name="assetItem">The asset to analyze.</param> /// <param name="logger">A logger to output fixed entries.</param> /// <remarks>This method doesn't handle collections in derived assets that will be desynchronized afterwards.</remarks> public static void FixupItemIds(AssetItem assetItem, ILogger logger) { var visitor = new CollectionItemIdsAnalysisVisitor(assetItem, logger); visitor.Visit(assetItem); }