Files
TG_ARPG/Plugins/CommonLoadingScreen/Source/CommonLoadingScreen/Public/LoadingProcessTask.h
2023-08-28 03:38:23 +08:00

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;
};