mirror of
https://github.com/AssetRipper/AssetRipper.git
synced 2025-12-11 20:15:29 +01:00
20 lines
665 B
C#
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);
|
|
}
|
|
}
|