Download LyraStarterGame/Plugins/CommonGame/Source/Public/CommonLocalPlayer.h from Alexhas2/unitysamples: direct link, hf CLI and curl.
- Browser
- Download file 2 kB
-
https://huggingface.co/datasets/Alexhas2/unitysamples/resolve/main/LyraStarterGame/Plugins/CommonGame/Source/Public/CommonLocalPlayer.h
- Command line
-
hf download hf://datasets/Alexhas2/unitysamples/LyraStarterGame/Plugins/CommonGame/Source/Public/CommonLocalPlayer.h
-
curl -L -o CommonLocalPlayer.h https://huggingface.co/datasets/Alexhas2/unitysamples/resolve/main/LyraStarterGame/Plugins/CommonGame/Source/Public/CommonLocalPlayer.h
2 kB
| // Copyright Epic Games, Inc. All Rights Reserved. | |
| class APawn; | |
| class APlayerController; | |
| class APlayerState; | |
| class FViewport; | |
| class UObject; | |
| class UPrimaryGameLayout; | |
| struct FSceneViewProjectionData; | |
| UCLASS(MinimalAPI, config=Engine, transient) | |
| class UCommonLocalPlayer : public ULocalPlayer | |
| { | |
| GENERATED_BODY() | |
| public: | |
| UE_API UCommonLocalPlayer(); | |
| /** Called when the local player is assigned a player controller */ | |
| DECLARE_MULTICAST_DELEGATE_TwoParams(FPlayerControllerSetDelegate, UCommonLocalPlayer* LocalPlayer, APlayerController* PlayerController); | |
| FPlayerControllerSetDelegate OnPlayerControllerSet; | |
| /** Called when the local player is assigned a player state */ | |
| DECLARE_MULTICAST_DELEGATE_TwoParams(FPlayerStateSetDelegate, UCommonLocalPlayer* LocalPlayer, APlayerState* PlayerState); | |
| FPlayerStateSetDelegate OnPlayerStateSet; | |
| /** Called when the local player is assigned a player pawn */ | |
| DECLARE_MULTICAST_DELEGATE_TwoParams(FPlayerPawnSetDelegate, UCommonLocalPlayer* LocalPlayer, APawn* Pawn); | |
| FPlayerPawnSetDelegate OnPlayerPawnSet; | |
| UE_API FDelegateHandle CallAndRegister_OnPlayerControllerSet(FPlayerControllerSetDelegate::FDelegate Delegate); | |
| UE_API FDelegateHandle CallAndRegister_OnPlayerStateSet(FPlayerStateSetDelegate::FDelegate Delegate); | |
| UE_API FDelegateHandle CallAndRegister_OnPlayerPawnSet(FPlayerPawnSetDelegate::FDelegate Delegate); | |
| public: | |
| UE_API virtual bool GetProjectionData(FViewport* Viewport, FSceneViewProjectionData& ProjectionData, int32 StereoViewIndex) const override; | |
| bool IsPlayerViewEnabled() const { return bIsPlayerViewEnabled; } | |
| void SetIsPlayerViewEnabled(bool bInIsPlayerViewEnabled) { bIsPlayerViewEnabled = bInIsPlayerViewEnabled; } | |
| UE_API UPrimaryGameLayout* GetRootUILayout() const; | |
| private: | |
| bool bIsPlayerViewEnabled = true; | |
| }; | |