Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- UCLASS()
- class POPPYANDBUDDY419_API ALoadAssets : public AActor
- {
- GENERATED_BODY()
- public:
- // Sets default values for this actor's properties
- ALoadAssets();
- protected:
- // Called when the game starts or when spawned
- virtual void BeginPlay() override;
- public:
- FHttpModule * Http;
- FString PakGamePath;
- FString ChunkName;
- UFUNCTION()
- FString GetPakPath();
- UPROPERTY(BlueprintReadWrite)
- FString ChunkToDownload;
- UFUNCTION(BlueprintCallable, Category = "LoadAssets")
- void DownloadAsset(const FString &AssetURL);
- void OnResponseReceived(FHttpRequestPtr Request, FHttpResponsePtr Response, bool bWasSuccessful);
- void OnRequestProgress(FHttpRequestPtr Request, int32 BytesSent, int32 BytesReceived);
- UFUNCTION()
- void MountPak(FString FileSavePath);
- UFUNCTION(BlueprintCallable, Category = "LoadAssets")
- void MountExistingPak(FString PakName);
- UFUNCTION(BlueprintCallable, Category = "LoadAssets")
- void MountExistingPaks();
- UFUNCTION(BlueprintNativeEvent, Category = "LoadAssets")
- void DLCReady();
- UPROPERTY()
- TArray <FString> Requests;
- UFUNCTION(BlueprintCallable, Category = "LoadAssets")
- void ClearOldPak(FString BookName, FString Checksum);
- UFUNCTION(BlueprintCallable, Category = "LoadAssets")
- TArray <FString> GetExistingPaks();
- UPROPERTY(BlueprintReadOnly)
- float Downloaded = 0;
- UPROPERTY(BlueprintReadWrite)
- EDownloadState DownloadState = EDownloadState::Idle;
- };
Advertisement
Add Comment
Please, Sign In to add comment