unitysamples / LyraStarterGame /Plugins /CommonGame /Source /Private /Messaging /CommonMessagingSubsystem.cpp
Download LyraStarterGame/Plugins/CommonGame/Source/Private/Messaging/CommonMessagingSubsystem.cpp from Alexhas2/unitysamples: direct link, hf CLI and curl.
- Browser
- Download file 1.31 kB
-
https://huggingface.co/datasets/Alexhas2/unitysamples/resolve/main/LyraStarterGame/Plugins/CommonGame/Source/Private/Messaging/CommonMessagingSubsystem.cpp
- Command line
-
hf download hf://datasets/Alexhas2/unitysamples/LyraStarterGame/Plugins/CommonGame/Source/Private/Messaging/CommonMessagingSubsystem.cpp
-
curl -L -o CommonMessagingSubsystem.cpp https://huggingface.co/datasets/Alexhas2/unitysamples/resolve/main/LyraStarterGame/Plugins/CommonGame/Source/Private/Messaging/CommonMessagingSubsystem.cpp
1.31 kB
| // Copyright Epic Games, Inc. All Rights Reserved. | |
| class FSubsystemCollectionBase; | |
| class UClass; | |
| void UCommonMessagingSubsystem::Initialize(FSubsystemCollectionBase& Collection) | |
| { | |
| Super::Initialize(Collection); | |
| } | |
| void UCommonMessagingSubsystem::Deinitialize() | |
| { | |
| Super::Deinitialize(); | |
| } | |
| bool UCommonMessagingSubsystem::ShouldCreateSubsystem(UObject* Outer) const | |
| { | |
| UGameInstance* GameInstance = CastChecked<ULocalPlayer>(Outer)->GetGameInstance(); | |
| if (GameInstance && !GameInstance->IsDedicatedServerInstance()) | |
| { | |
| TArray<UClass*> ChildClasses; | |
| GetDerivedClasses(GetClass(), ChildClasses, false); | |
| // Only create an instance if there is no override implementation defined elsewhere | |
| return ChildClasses.Num() == 0; | |
| } | |
| return false; | |
| } | |
| void UCommonMessagingSubsystem::ShowConfirmation(UCommonGameDialogDescriptor* DialogDescriptor, FCommonMessagingResultDelegate ResultCallback) | |
| { | |
| } | |
| void UCommonMessagingSubsystem::ShowError(UCommonGameDialogDescriptor* DialogDescriptor, FCommonMessagingResultDelegate ResultCallback) | |
| { | |
| } | |