unitysamples / LyraStarterGame /Plugins /CommonGame /Source /Public /Messaging /CommonMessagingSubsystem.h
Download LyraStarterGame/Plugins/CommonGame/Source/Public/Messaging/CommonMessagingSubsystem.h from Alexhas2/unitysamples: direct link, hf CLI and curl.
- Browser
- Download file 1.51 kB
-
https://huggingface.co/datasets/Alexhas2/unitysamples/resolve/main/LyraStarterGame/Plugins/CommonGame/Source/Public/Messaging/CommonMessagingSubsystem.h
- Command line
-
hf download hf://datasets/Alexhas2/unitysamples/LyraStarterGame/Plugins/CommonGame/Source/Public/Messaging/CommonMessagingSubsystem.h
-
curl -L -o CommonMessagingSubsystem.h https://huggingface.co/datasets/Alexhas2/unitysamples/resolve/main/LyraStarterGame/Plugins/CommonGame/Source/Public/Messaging/CommonMessagingSubsystem.h
1.51 kB
| // Copyright Epic Games, Inc. All Rights Reserved. | |
| class FSubsystemCollectionBase; | |
| class UCommonGameDialogDescriptor; | |
| class UObject; | |
| /** Possible results from a dialog */ | |
| UENUM(BlueprintType) | |
| enum class ECommonMessagingResult : uint8 | |
| { | |
| /** The "yes" button was pressed */ | |
| Confirmed, | |
| /** The "no" button was pressed */ | |
| Declined, | |
| /** The "ignore/cancel" button was pressed */ | |
| Cancelled, | |
| /** The dialog was explicitly killed (no user input) */ | |
| Killed, | |
| Unknown UMETA(Hidden) | |
| }; | |
| DECLARE_DELEGATE_OneParam(FCommonMessagingResultDelegate, ECommonMessagingResult /* Result */); | |
| /** | |
| * | |
| */ | |
| UCLASS(MinimalAPI, config = Game) | |
| class UCommonMessagingSubsystem : public ULocalPlayerSubsystem | |
| { | |
| GENERATED_BODY() | |
| public: | |
| UCommonMessagingSubsystem() { } | |
| UE_API virtual void Initialize(FSubsystemCollectionBase& Collection) override; | |
| UE_API virtual void Deinitialize() override; | |
| UE_API virtual bool ShouldCreateSubsystem(UObject* Outer) const override; | |
| UE_API virtual void ShowConfirmation(UCommonGameDialogDescriptor* DialogDescriptor, FCommonMessagingResultDelegate ResultCallback = FCommonMessagingResultDelegate()); | |
| UE_API virtual void ShowError(UCommonGameDialogDescriptor* DialogDescriptor, FCommonMessagingResultDelegate ResultCallback = FCommonMessagingResultDelegate()); | |
| private: | |
| }; | |