A modded EditSaber for making beat saber maps.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

53 lines
1.2 KiB

  1. #include "ZipUtilityPrivatePCH.h"
  2. #include "WindowsFileUtilityFunctionLibrary.h"
  3. #include "ZipFileFunctionLibrary.h"
  4. #include "ZULambdaDelegate.h"
  5. UZULambdaDelegate::UZULambdaDelegate()
  6. {
  7. OnDoneCallback = nullptr;
  8. OnProgressCallback = nullptr;
  9. }
  10. void UZULambdaDelegate::SetOnDoneCallback(TFunction<void()> InOnDoneCallback)
  11. {
  12. OnDoneCallback = InOnDoneCallback;
  13. }
  14. void UZULambdaDelegate::SetOnProgessCallback(TFunction<void(float)> InOnProgressCallback)
  15. {
  16. OnProgressCallback = InOnProgressCallback;
  17. }
  18. void UZULambdaDelegate::OnProgress_Implementation(const FString& archive, float percentage, int32 bytes)
  19. {
  20. if (OnProgressCallback != nullptr)
  21. {
  22. OnProgressCallback(percentage);
  23. }
  24. }
  25. void UZULambdaDelegate::OnDone_Implementation(const FString& archive, EZipUtilityCompletionState CompletionState)
  26. {
  27. if (OnDoneCallback != nullptr)
  28. {
  29. OnDoneCallback();
  30. }
  31. }
  32. void UZULambdaDelegate::OnStartProcess_Implementation(const FString& archive, int32 bytes)
  33. {
  34. }
  35. void UZULambdaDelegate::OnFileDone_Implementation(const FString& archive, const FString& file)
  36. {
  37. }
  38. void UZULambdaDelegate::OnFileFound_Implementation(const FString& archive, const FString& file, int32 size)
  39. {
  40. }