5#include "Containers/Map.h"
11template<
typename FManager>
17 UE_DEPRECATED(5.1,
"TDefaultManagerInstanceTracker is deprecated and will be removed. Consider inheriting from a subsystem instead.")
22 UE_DEPRECATED(5.1,
"TDefaultManagerInstanceTracker is deprecated and will be removed. Consider inheriting from a subsystem instead.")
30 else if (
World.bIsTearingDown)
49 ,
TEXT(
"Calling FManager::GetCurrent while no instance for world %s has been created, and bCreateIfMissing == false")
61 (*FoundInstance)->RemoveFromRoot();
#define UE_DEPRECATED(Version, Message)
Definition CoreMiscDefines.h:302
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define DECLARE_LOG_CATEGORY_EXTERN(CategoryName, DefaultVerbosity, CompileTimeVerbosity)
Definition LogMacros.h:361
#define UE_LOG(CategoryName, Verbosity, Format,...)
Definition LogMacros.h:270
static UE_API FWorldCleanupEvent OnPostWorldCleanup
Definition World.h:4463
Definition UnrealString.h.inl:34
Definition DefaultManagerInstanceTracker.h:13
FManager * GetManagerInstance(UWorld &World)
Definition DefaultManagerInstanceTracker.h:23
bool bCreateIfMissing
Definition DefaultManagerInstanceTracker.h:15
TMap< UWorld *, FManager * > WorldToInstanceMap
Definition DefaultManagerInstanceTracker.h:14
void OnPostWorldCleanup(UWorld *World, bool, bool)
Definition DefaultManagerInstanceTracker.h:56