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.

26 lines
987 B

  1. #pragma once
  2. #include "Object.h"
  3. #include "ZULambdaDelegate.generated.h"
  4. UCLASS()
  5. class ZIPUTILITY_API UZULambdaDelegate : public UObject, public IZipUtilityInterface
  6. {
  7. GENERATED_BODY()
  8. UZULambdaDelegate();
  9. public:
  10. void SetOnDoneCallback(TFunction<void()> InOnDoneCallback);
  11. void SetOnProgessCallback(TFunction<void(float)> InOnProgressCallback);
  12. protected:
  13. //Zip utility interface
  14. virtual void OnProgress_Implementation(const FString& archive, float percentage, int32 bytes) override;
  15. virtual void OnDone_Implementation(const FString& archive, EZipUtilityCompletionState CompletionState) override;
  16. virtual void OnStartProcess_Implementation(const FString& archive, int32 bytes) override;
  17. virtual void OnFileDone_Implementation(const FString& archive, const FString& file) override;
  18. virtual void OnFileFound_Implementation(const FString& archive, const FString& file, int32 size) override;
  19. TFunction<void()> OnDoneCallback;
  20. TFunction<void(float)> OnProgressCallback;
  21. };