Dialog fixing

This commit is contained in:
Vladislav Khorev committed 2026-05-22 22:32:05 +03:00
1 parent 8c200974c2
commit 84c8a7a27a
13 files changed
+169 -43

No files matched your search

+19
View File
@@ -146,6 +146,25 @@ namespace ZL
scriptEngine.callCutsceneCompleteCallback(cutsceneId);
});
dialogueSystem.setOnDialogueLineStarted([this](const std::string& fn) {
try { scriptEngine.callActivateFunction(fn); }
catch (const std::exception& e) {
std::cerr << "[dialogue] line callback error: " << e.what() << "\n";
}
});
dialogueSystem.setOnCutsceneLineStarted([this](const std::string& fn) {
try { scriptEngine.callActivateFunction(fn); }
catch (const std::exception& e) {
std::cerr << "[cutscene] line callback error: " << e.what() << "\n";
}
});
dialogueSystem.setOnCutsceneFadeInComplete([this](const std::string& fn) {
try { scriptEngine.callActivateFunction(fn); }
catch (const std::exception& e) {
std::cerr << "[cutscene] fade-in callback error: " << e.what() << "\n";
}
});
}
void Location::loadTeleportZones(const std::string& jsonPath, const char* zipFile)