You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
59 lines
1002 B
C++
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;
|
|
};
|
|
|