antidamage

Untitled

Nov 19th, 2019
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.45 KB | None | 0 0
  1. UCLASS()
  2. class POPPYANDBUDDY419_API ALoadAssets : public AActor
  3. {
  4.     GENERATED_BODY()
  5.  
  6. public:
  7.     // Sets default values for this actor's properties
  8.     ALoadAssets();
  9.  
  10. protected:
  11.     // Called when the game starts or when spawned
  12.     virtual void BeginPlay() override;
  13.  
  14. public:
  15.  
  16.     FHttpModule * Http;
  17.  
  18.     FString PakGamePath;
  19.     FString ChunkName;
  20.  
  21.     UFUNCTION()
  22.         FString GetPakPath();
  23.  
  24.     UPROPERTY(BlueprintReadWrite)
  25.         FString ChunkToDownload;
  26.  
  27.     UFUNCTION(BlueprintCallable, Category = "LoadAssets")
  28.         void DownloadAsset(const FString &AssetURL);
  29.  
  30.     void OnResponseReceived(FHttpRequestPtr Request, FHttpResponsePtr Response, bool bWasSuccessful);
  31.     void OnRequestProgress(FHttpRequestPtr Request, int32 BytesSent, int32 BytesReceived);
  32.  
  33.     UFUNCTION()
  34.         void MountPak(FString FileSavePath);
  35.  
  36.     UFUNCTION(BlueprintCallable, Category = "LoadAssets")
  37.         void MountExistingPak(FString PakName);
  38.  
  39.     UFUNCTION(BlueprintCallable, Category = "LoadAssets")
  40.         void MountExistingPaks();
  41.  
  42.     UFUNCTION(BlueprintNativeEvent, Category = "LoadAssets")
  43.         void DLCReady();
  44.  
  45.     UPROPERTY()
  46.         TArray <FString> Requests;
  47.  
  48.     UFUNCTION(BlueprintCallable, Category = "LoadAssets")
  49.         void ClearOldPak(FString BookName, FString Checksum);
  50.  
  51.     UFUNCTION(BlueprintCallable, Category = "LoadAssets")
  52.         TArray <FString> GetExistingPaks();
  53.  
  54.     UPROPERTY(BlueprintReadOnly)
  55.         float Downloaded = 0;
  56.  
  57.     UPROPERTY(BlueprintReadWrite)
  58.         EDownloadState DownloadState = EDownloadState::Idle;
  59. };
Advertisement
Add Comment
Please, Sign In to add comment