Download LyraStarterGame/Source/LyraGame/Player/LyraLocalPlayer.h from Alexhas2/unitysamples: direct link, hf CLI and curl.
- Browser
- Download file 2.88 kB
-
https://huggingface.co/datasets/Alexhas2/unitysamples/resolve/main/LyraStarterGame/Source/LyraGame/Player/LyraLocalPlayer.h
- Command line
-
hf download hf://datasets/Alexhas2/unitysamples/LyraStarterGame/Source/LyraGame/Player/LyraLocalPlayer.h
-
curl -L -o LyraLocalPlayer.h https://huggingface.co/datasets/Alexhas2/unitysamples/resolve/main/LyraStarterGame/Source/LyraGame/Player/LyraLocalPlayer.h
2.88 kB
| // Copyright Epic Games, Inc. All Rights Reserved. | |
| struct FGenericTeamId; | |
| class APlayerController; | |
| class UInputMappingContext; | |
| class ULyraSettingsLocal; | |
| class ULyraSettingsShared; | |
| class UObject; | |
| class UWorld; | |
| struct FFrame; | |
| struct FSwapAudioOutputResult; | |
| /** | |
| * ULyraLocalPlayer | |
| */ | |
| UCLASS(MinimalAPI) | |
| class ULyraLocalPlayer : public UCommonLocalPlayer, public ILyraTeamAgentInterface | |
| { | |
| GENERATED_BODY() | |
| public: | |
| UE_API ULyraLocalPlayer(); | |
| //~UObject interface | |
| UE_API virtual void PostInitProperties() override; | |
| //~End of UObject interface | |
| //~UPlayer interface | |
| UE_API virtual void SwitchController(class APlayerController* PC) override; | |
| //~End of UPlayer interface | |
| //~ULocalPlayer interface | |
| UE_API virtual bool SpawnPlayActor(const FString& URL, FString& OutError, UWorld* InWorld) override; | |
| UE_API virtual void InitOnlineSession() override; | |
| //~End of ULocalPlayer interface | |
| //~ILyraTeamAgentInterface interface | |
| UE_API virtual void SetGenericTeamId(const FGenericTeamId& NewTeamID) override; | |
| UE_API virtual FGenericTeamId GetGenericTeamId() const override; | |
| UE_API virtual FOnLyraTeamIndexChangedDelegate* GetOnTeamIndexChangedDelegate() override; | |
| //~End of ILyraTeamAgentInterface interface | |
| /** Gets the local settings for this player, this is read from config files at process startup and is always valid */ | |
| UFUNCTION() | |
| UE_API ULyraSettingsLocal* GetLocalSettings() const; | |
| /** Gets the shared setting for this player, this is read using the save game system so may not be correct until after user login */ | |
| UFUNCTION() | |
| UE_API ULyraSettingsShared* GetSharedSettings() const; | |
| /** Starts an async request to load the shared settings, this will call OnSharedSettingsLoaded after loading or creating new ones */ | |
| UE_API void LoadSharedSettingsFromDisk(bool bForceLoad = false); | |
| protected: | |
| UE_API void OnSharedSettingsLoaded(ULyraSettingsShared* LoadedOrCreatedSettings); | |
| UE_API void OnAudioOutputDeviceChanged(const FString& InAudioOutputDeviceId); | |
| UFUNCTION() | |
| UE_API void OnCompletedAudioDeviceSwap(const FSwapAudioOutputResult& SwapResult); | |
| UE_API void OnPlayerControllerChanged(APlayerController* NewController); | |
| UFUNCTION() | |
| UE_API void OnControllerChangedTeam(UObject* TeamAgent, int32 OldTeam, int32 NewTeam); | |
| private: | |
| UPROPERTY(Transient) | |
| mutable TObjectPtr<ULyraSettingsShared> SharedSettings; | |
| FUniqueNetIdRepl NetIdForSharedSettings; | |
| UPROPERTY(Transient) | |
| mutable TObjectPtr<const UInputMappingContext> InputMappingContext; | |
| UPROPERTY() | |
| FOnLyraTeamIndexChangedDelegate OnTeamChangedDelegate; | |
| UPROPERTY() | |
| TWeakObjectPtr<APlayerController> LastBoundPC; | |
| }; | |