90{
91 static_assert(TIsDerivedFrom<TCommandType, UCommandBase>::Value, "TCommandType must derive from UCommandBase.");
92
93 if (WorldContextObject == nullptr)
94 {
95 return nullptr;
96 }
97
98 UGameInstance* GameInstance = Cast<UGameInstance>(WorldContextObject);
99
100 if (GameInstance == nullptr)
101 {
102 UWorld* World = WorldContextObject->GetWorld();
103 GameInstance = World ? World->GetGameInstance() : nullptr;
104 check(GameInstance);
105 }
106
108
109 if (SnapshotSubsystem == nullptr)
110 {
112 return nullptr;
113 }
114 else
115 {
117 }
118}
#define LOG_ERROR(Category, Format,...)
Definition CK_UE.h:40
#define NAMEOF(Type)
Definition CK_UE.h:30
Definition SnapshotSubsystem.h:16
TCommandType * ProcessNewCommand(TInitializeCommand InitializeCommand)
Definition SnapshotSubsystem.h:59