Files
UnrealEngineUWP/Engine/Source/Runtime/HTML5/MapPakDownloader/Public/MapPakDownloader.h
Chris Gagnon 8fc25ea18e Merging //UE4/Dev-Main to Dev-Editor (//UE4/Dev-Editor)
#rb none

[CL 4676797 by Chris Gagnon in Dev-Editor branch]
2019-01-02 14:54:39 -05:00

59 lines
1002 B
C++

// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "Styling/SlateStyleRegistry.h"
#include "Widgets/SWidget.h"
#include "SlateFwd.h"
class FMapPakDownloader
{
public:
FMapPakDownloader();
/**
* Setup hostname and pak directories.
*/
bool Init();
/**
* Cache Map if needed and then transition
*/
void Cache(FString& Url, FString& LastUrl, void* DynData);
private:
/**
* http download pak file and then transition to requested map.
*/
void CachePak();
// URL being Cached.
FString MapToCache;
// Last URL.
FString LastMap;
// Dynamic Data.
void* DynData;
// Server where paks are located.
FString HostName;
// Relative dir of Pak files
FString PakLocation;
// In Loading screen level.
bool IsTransitionLevel;
// Loading Screen Widget.
TSharedPtr<SWidget> LoadingWidget;
// Progress
TSharedPtr<class FloatOption> ProgressContainter;
};