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.

61 lines
1.7 KiB

  1. // Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
  2. #pragma once
  3. #include "ZipUtilityInterface.generated.h"
  4. UENUM(BlueprintType)
  5. enum EZipUtilityCompletionState
  6. {
  7. SUCCESS,
  8. FAILURE_NOT_FOUND,
  9. FAILURE_UNKNOWN
  10. };
  11. UINTERFACE(MinimalAPI)
  12. class UZipUtilityInterface : public UInterface
  13. {
  14. GENERATED_UINTERFACE_BODY()
  15. };
  16. class ZIPUTILITY_API IZipUtilityInterface
  17. {
  18. GENERATED_IINTERFACE_BODY()
  19. public:
  20. /**
  21. * Called during process as it completes. Currently updates on per file progress.
  22. * @param percentage - percentage done
  23. */
  24. UFUNCTION(BlueprintNativeEvent, Category = ZipUtilityProgressEvents)
  25. void OnProgress(const FString& archive, float percentage, int32 bytes);
  26. /**
  27. * Called when whole process is complete (e.g. unzipping completed on archive)
  28. */
  29. UFUNCTION(BlueprintNativeEvent, Category = ZipUtilityProgressEvents)
  30. void OnDone(const FString& archive, EZipUtilityCompletionState CompletionState);
  31. /**
  32. * Called at beginning of process (NB this only supports providing size information for up to 2gb) TODO: fix 32bit BP size issue
  33. */
  34. UFUNCTION(BlueprintNativeEvent, Category = ZipUtilityProgressEvents)
  35. void OnStartProcess(const FString& archive, int32 bytes);
  36. /**
  37. * Called when file process is complete
  38. * @param path - path of the file that finished
  39. */
  40. UFUNCTION(BlueprintNativeEvent, Category = ZipUtilityProgressEvents)
  41. void OnFileDone(const FString& archive, const FString& file);
  42. /**
  43. * Called when a file is found in the archive (e.g. listing the entries in the archive)
  44. * @param path - path of file
  45. * @param size - compressed size
  46. */
  47. UFUNCTION(BlueprintNativeEvent, Category = ZipUtilityListEvents)
  48. void OnFileFound(const FString& archive, const FString& file, int32 size);
  49. };