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

Method GetAllDialoguesGUIDsMap

Source/DlgSystem/Private/DlgManager.cpp:372–392  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

370}
371
372TMap<FGuid, UDlgDialogue*> UDlgManager::GetAllDialoguesGUIDsMap()
373{
374 TArray<UDlgDialogue*> Dialogues = GetAllDialoguesFromMemory();
375 TMap<FGuid, UDlgDialogue*> DialoguesMap;
376
377 for (UDlgDialogue* Dialogue : Dialogues)
378 {
379 const FGuid ID = Dialogue->GetGUID();
380 if (DialoguesMap.Contains(ID))
381 {
382 FDlgLogger::Get().Errorf(
383 TEXT("GetAllDialoguesGUIDsMap - ID = `%s` for Dialogue = `%s` already exists"),
384 *ID.ToString(), *Dialogue->GetPathName()
385 );
386 }
387
388 DialoguesMap.Add(ID, Dialogue);
389 }
390
391 return DialoguesMap;
392}
393
394const TMap<FGuid, FDlgHistory>& UDlgManager::GetDialogueHistory()
395{

Callers

nothing calls this directly

Calls 1

ToStringMethod · 0.45

Tested by

no test coverage detected