mirror of
https://github.com/AssetRipper/AssetRipper.git
synced 2025-12-11 20:15:29 +01:00
* Failed type checks return null * Bad dependency numbers return null * Remove GetAsset methods * Make asset processing more lenient about null references
30 lines
912 B
C#
30 lines
912 B
C#
using AssetRipper.IO.Files;
|
|
using AssetRipper.IO.Files.SerializedFiles;
|
|
|
|
namespace AssetRipper.Assets.Collections
|
|
{
|
|
public interface IAssetContainer
|
|
{
|
|
/// <summary>
|
|
/// Try to find an asset in the current serialized file
|
|
/// </summary>
|
|
/// <param name="pathID">Path ID of the asset</param>
|
|
/// <returns>Found asset or null</returns>
|
|
IUnityObjectBase? TryGetAsset(long pathID);
|
|
/// <summary>
|
|
/// Try to get asset in the dependency file with specified file index
|
|
/// </summary>
|
|
/// <param name="fileIndex">Dependent file index</param>
|
|
/// <param name="pathID">Path ID of the asset</param>
|
|
/// <returns>Found asset or null</returns>
|
|
IUnityObjectBase? TryGetAsset(int fileIndex, long pathID);
|
|
|
|
string Name { get; }
|
|
UnityVersion Version { get; }
|
|
BuildTarget Platform { get; }
|
|
TransferInstructionFlags Flags { get; }
|
|
|
|
IReadOnlyList<AssetCollection?> Dependencies { get; }
|
|
}
|
|
}
|