34 lines
821 B
C++
34 lines
821 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "LoadingProcessInterface.h"
|
|
#include "UObject/Object.h"
|
|
|
|
#include "LoadingProcessTask.generated.h"
|
|
|
|
struct FFrame;
|
|
|
|
UCLASS(BlueprintType)
|
|
class COMMONLOADINGSCREEN_API ULoadingProcessTask : public UObject, public ILoadingProcessInterface
|
|
{
|
|
GENERATED_BODY()
|
|
|
|
public:
|
|
UFUNCTION(BlueprintCallable, meta=(WorldContext = "WorldContextObject"))
|
|
static ULoadingProcessTask* CreateLoadingScreenProcessTask(UObject* WorldContextObject, const FString& ShowLoadingScreenReason);
|
|
|
|
public:
|
|
ULoadingProcessTask() { }
|
|
|
|
UFUNCTION(BlueprintCallable)
|
|
void Unregister();
|
|
|
|
UFUNCTION(BlueprintCallable)
|
|
void SetShowLoadingScreenReason(const FString& InReason);
|
|
|
|
virtual bool ShouldShowLoadingScreen(FString& OutReason) const override;
|
|
|
|
FString Reason;
|
|
};
|