ListRequestInfo.cs 878 B

1234567891011121314151617181920212223
  1. using System; //Action
  2. using UnityEditor.PackageManager.Requests; //ListRequest, AddRequest, etc
  3. using UnityEditor.PackageManager; //PackageCollection
  4. namespace Unity.RenderStreaming.Editor {
  5. class ListRequestInfo {
  6. internal bool OfflineMode;
  7. internal bool IncludeIndirectIndependencies;
  8. internal Action<Request<PackageCollection>> OnSuccessAction;
  9. internal Action<Request<PackageCollection>> OnFailAction;
  10. internal ListRequestInfo(bool offlineMode, bool includeIndirectDependencies,
  11. Action<Request<PackageCollection>> onSuccess, Action<Request<PackageCollection>> onFail)
  12. {
  13. OfflineMode = offlineMode;
  14. IncludeIndirectIndependencies = includeIndirectDependencies;
  15. OnSuccessAction = onSuccess;
  16. OnFailAction = onFail;
  17. }
  18. }
  19. } //namespace Unity.RenderStreaming.Editor