unitysamples / LyraStarterGame /Source /LyraGame /GameFeatures /GameFeatureAction_SplitscreenConfig.h
Download LyraStarterGame/Source/LyraGame/GameFeatures/GameFeatureAction_SplitscreenConfig.h from Alexhas2/unitysamples: direct link, hf CLI and curl.
- Browser
- Download file 1.33 kB
-
https://huggingface.co/datasets/Alexhas2/unitysamples/resolve/main/LyraStarterGame/Source/LyraGame/GameFeatures/GameFeatureAction_SplitscreenConfig.h
- Command line
-
hf download hf://datasets/Alexhas2/unitysamples/LyraStarterGame/Source/LyraGame/GameFeatures/GameFeatureAction_SplitscreenConfig.h
-
curl -L -o GameFeatureAction_SplitscreenConfig.h https://huggingface.co/datasets/Alexhas2/unitysamples/resolve/main/LyraStarterGame/Source/LyraGame/GameFeatures/GameFeatureAction_SplitscreenConfig.h
1.33 kB
| // Copyright Epic Games, Inc. All Rights Reserved. | |
| class UObject; | |
| struct FGameFeatureDeactivatingContext; | |
| struct FGameFeatureStateChangeContext; | |
| struct FWorldContext; | |
| ////////////////////////////////////////////////////////////////////// | |
| // UGameFeatureAction_SplitscreenConfig | |
| /** | |
| * GameFeatureAction responsible for configuring Splitscreen. | |
| */ | |
| UCLASS(MinimalAPI, meta = (DisplayName = "Splitscreen Config")) | |
| class UGameFeatureAction_SplitscreenConfig final : public UGameFeatureAction_WorldActionBase | |
| { | |
| GENERATED_BODY() | |
| public: | |
| //~ Begin UGameFeatureAction interface | |
| virtual void OnGameFeatureDeactivating(FGameFeatureDeactivatingContext& Context) override; | |
| //~ End UGameFeatureAction interface | |
| //~ Begin UGameFeatureAction_WorldActionBase interface | |
| virtual void AddToWorld(const FWorldContext& WorldContext, const FGameFeatureStateChangeContext& ChangeContext) override; | |
| //~ End UGameFeatureAction_WorldActionBase interface | |
| public: | |
| UPROPERTY(EditAnywhere, Category=Action) | |
| bool bDisableSplitscreen = true; | |
| private: | |
| TArray<FObjectKey> LocalDisableVotes; | |
| static TMap<FObjectKey, int32> GlobalDisableVotes; | |
| }; | |