MCPcopy Create free account
hub / github.com/NotYetGames/DlgSystem / HandleOnPreLoadMap

Method HandleOnPreLoadMap

Source/DlgSystem/Private/DlgSystemModule.cpp:314–328  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

312}
313
314void FDlgSystemModule::HandleOnPreLoadMap(const FString& MapName)
315{
316 // NOTE: only in NON editor game
317 const UDlgSystemSettings* Settings = GetDefault<UDlgSystemSettings>();
318 if (!Settings)
319 {
320 return;
321 }
322
323 if (Settings->bClearDialogueHistoryAutomatically)
324 {
325 FDlgLogger::Get().Debugf(TEXT("PreLoadMap = %s. Clearing Dialogue History"), *MapName);
326 UDlgManager::ClearDialogueHistory();
327 }
328}
329
330void FDlgSystemModule::HandleOnPostLoadMapWithWorld(UWorld* LoadedWorld)
331{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected