Download LyraStarterGame/Source/LyraGame/UI/Frontend/LyraFrontendStateComponent.h from Alexhas2/unitysamples: direct link, hf CLI and curl.
- Browser
- Download file 2.11 kB
-
https://huggingface.co/datasets/Alexhas2/unitysamples/resolve/main/LyraStarterGame/Source/LyraGame/UI/Frontend/LyraFrontendStateComponent.h
- Command line
-
hf download hf://datasets/Alexhas2/unitysamples/LyraStarterGame/Source/LyraGame/UI/Frontend/LyraFrontendStateComponent.h
-
curl -L -o LyraFrontendStateComponent.h https://huggingface.co/datasets/Alexhas2/unitysamples/resolve/main/LyraStarterGame/Source/LyraGame/UI/Frontend/LyraFrontendStateComponent.h
2.11 kB
| // Copyright Epic Games, Inc. All Rights Reserved. | |
| class FControlFlow; | |
| class FString; | |
| class FText; | |
| class UObject; | |
| struct FFrame; | |
| enum class ECommonUserOnlineContext : uint8; | |
| enum class ECommonUserPrivilege : uint8; | |
| class UCommonActivatableWidget; | |
| class UCommonUserInfo; | |
| class ULyraExperienceDefinition; | |
| UCLASS(Abstract) | |
| class ULyraFrontendStateComponent : public UGameStateComponent, public ILoadingProcessInterface | |
| { | |
| GENERATED_BODY() | |
| public: | |
| ULyraFrontendStateComponent(const FObjectInitializer& ObjectInitializer = FObjectInitializer::Get()); | |
| //~UActorComponent interface | |
| virtual void BeginPlay() override; | |
| virtual void EndPlay(const EEndPlayReason::Type EndPlayReason) override; | |
| //~End of UActorComponent interface | |
| //~ILoadingProcessInterface interface | |
| virtual bool ShouldShowLoadingScreen(FString& OutReason) const override; | |
| //~End of ILoadingProcessInterface | |
| private: | |
| void OnExperienceLoaded(const ULyraExperienceDefinition* Experience); | |
| UFUNCTION() | |
| void OnUserInitialized(const UCommonUserInfo* UserInfo, bool bSuccess, FText Error, ECommonUserPrivilege RequestedPrivilege, ECommonUserOnlineContext OnlineContext); | |
| void FlowStep_WaitForUserInitialization(FControlFlowNodeRef SubFlow); | |
| void FlowStep_TryShowPressStartScreen(FControlFlowNodeRef SubFlow); | |
| void FlowStep_TryJoinRequestedSession(FControlFlowNodeRef SubFlow); | |
| void FlowStep_TryShowMainScreen(FControlFlowNodeRef SubFlow); | |
| bool bShouldShowLoadingScreen = true; | |
| UPROPERTY(EditAnywhere, Category = UI) | |
| TSoftClassPtr<UCommonActivatableWidget> PressStartScreenClass; | |
| UPROPERTY(EditAnywhere, Category = UI) | |
| TSoftClassPtr<UCommonActivatableWidget> MainScreenClass; | |
| TSharedPtr<FControlFlow> FrontEndFlow; | |
| // If set, this is the in-progress press start screen task | |
| FControlFlowNodePtr InProgressPressStartScreen; | |
| FDelegateHandle OnJoinSessionCompleteEventHandle; | |
| }; | |