57 lines
1.7 KiB
C#
57 lines
1.7 KiB
C#
|
using System;
|
||
|
using System.Collections.Generic;
|
||
|
using UnityEditor.Build.Content;
|
||
|
using UnityEditor.Build.Player;
|
||
|
using UnityEngine;
|
||
|
using UnityEngine.Build.Pipeline;
|
||
|
|
||
|
namespace UnityEditor.Build.Pipeline.Interfaces
|
||
|
{
|
||
|
public struct AssetResultData
|
||
|
{
|
||
|
public GUID Guid;
|
||
|
public Hash128 Hash;
|
||
|
public List<ObjectIdentifier> IncludedObjects;
|
||
|
public List<ObjectIdentifier> ReferencedObjects;
|
||
|
public Dictionary<ObjectIdentifier, Type[]> ObjectTypes;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// Base interface for the build results container
|
||
|
/// </summary>
|
||
|
public interface IBuildResults : IContextObject
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// Results from the script compiling step.
|
||
|
/// </summary>
|
||
|
ScriptCompilationResult ScriptResults { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// Map of serialized file name to results for built content.
|
||
|
/// </summary>
|
||
|
Dictionary<string, WriteResult> WriteResults { get; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// Map of serialized file name to additional metadata associated with the write result.
|
||
|
/// </summary>
|
||
|
Dictionary<string, SerializedFileMetaData> WriteResultsMetaData { get; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// Map of Asset data included in this build
|
||
|
/// </summary>
|
||
|
Dictionary<GUID, AssetResultData> AssetResults { get; }
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// Extended interface for Asset Bundle build results container.
|
||
|
/// <seealso cref="IBuildResults"/>
|
||
|
/// </summary>
|
||
|
public interface IBundleBuildResults : IBuildResults
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// Map of Asset Bundle name to details about the built bundle.
|
||
|
/// </summary>
|
||
|
Dictionary<string, BundleDetails> BundleInfos { get; }
|
||
|
}
|
||
|
}
|