UnityRenderStreaming/com.unity.renderstreaming/Editor/RequestInfo/ListRequestInfo.cs

26 строки
935 B
C#

using System; //Action
using UnityEditor.PackageManager; //PackageCollection
using UnityEditor.PackageManager.Requests; //ListRequest, AddRequest, etc
namespace Unity.RenderStreaming.Editor
{
class ListRequestInfo
{
internal bool OfflineMode;
internal bool IncludeIndirectIndependencies;
internal Action<Request<PackageCollection>> OnSuccessAction;
internal Action<Request<PackageCollection>> OnFailAction;
internal ListRequestInfo(bool offlineMode, bool includeIndirectDependencies,
Action<Request<PackageCollection>> onSuccess, Action<Request<PackageCollection>> onFail)
{
OfflineMode = offlineMode;
IncludeIndirectIndependencies = includeIndirectDependencies;
OnSuccessAction = onSuccess;
OnFailAction = onFail;
}
}
} //namespace Unity.RenderStreaming.Editor