MCPcopy Create free account
hub / github.com/REGoth-project/REGoth / importDialogManager

Method importDialogManager

src/logic/DialogManager.cpp:487–497  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

485}
486
487void DialogManager::importDialogManager(const json& j)
488{
489 for (auto it = j["npcKnowsInfo"].begin(); it != j["npcKnowsInfo"].end(); it++)
490 {
491 // Map of indices -> array of numbers
492 int npcInstance = std::stoi(it.key());
493
494 for (int info : it.value())
495 m_World.getDialogManager().getScriptDialogManager()->setNpcInfoKnown((unsigned int)npcInstance, (unsigned int)info);
496 }
497}
498
499void DialogManager::onInputAction(Engine::ActionType action)
500{

Callers 1

initMethod · 0.80

Calls 5

beginMethod · 0.45
endMethod · 0.45
keyMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected