mirror of
https://github.com/AssetRipper/AssetRipper.git
synced 2025-12-11 20:15:29 +01:00
25 lines
791 B
C#
25 lines
791 B
C#
using AssetRipper.Assets.Bundles;
|
|
using AssetRipper.Assets.Collections;
|
|
using AssetRipper.Import.Structure;
|
|
using AssetRipper.Import.Structure.Assembly.Managers;
|
|
using AssetRipper.Import.Structure.Platforms;
|
|
|
|
namespace AssetRipper.Processing;
|
|
|
|
public record GameData(
|
|
GameBundle GameBundle,
|
|
UnityVersion ProjectVersion,
|
|
IAssemblyManager AssemblyManager,
|
|
PlatformGameStructure? PlatformStructure)
|
|
{
|
|
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, gameStructure.PlatformStructure);
|
|
}
|
|
}
|