2023-07-05 16:44:32 -04:00

20 lines
665 B
C#

using AssetRipper.Assets.Bundles;
using AssetRipper.Assets.Collections;
using AssetRipper.Import.Structure;
using AssetRipper.Import.Structure.Assembly.Managers;
namespace AssetRipper.Processing;
public record GameData(GameBundle GameBundle, UnityVersion ProjectVersion, IAssemblyManager AssemblyManager)
{
public ProcessedAssetCollection AddNewProcessedCollection(string name)
{
return GameBundle.AddNewProcessedCollection(name, ProjectVersion);
}
public static GameData FromGameStructure(GameStructure gameStructure)
{
return new(gameStructure.FileCollection, gameStructure.FileCollection.GetMaxUnityVersion(), gameStructure.AssemblyManager);
}
}