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

Method queueDialogEndEvent

src/logic/DialogManager.cpp:141–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139}
140
141void DialogManager::queueDialogEndEvent(NpcHandle target)
142{
143 // Push the actual conversation-message
144 EventMessages::ConversationMessage endDialogMessage;
145 endDialogMessage.subType = EventMessages::ConversationMessage::ST_StopProcessInfos;
146 // select on which EventManager the exit-DialogManager-event will be scheduled
147 bool playerGetsEndEvent = false;
148 auto handleForQueuing = playerGetsEndEvent ? m_Interaction.player : target;
149 VobTypes::NpcVobInformation queueVob = VobTypes::getVobFromScriptHandle(m_World, handleForQueuing);
150
151 if (queueVob.isValid())
152 queueVob.playerController->getEM().onMessage(endDialogMessage);
153}
154
155void DialogManager::onAIOutput(NpcHandle self, NpcHandle target, const ZenLoad::oCMsgConversationData& msg)
156{

Callers 1

Calls 2

isValidMethod · 0.45
onMessageMethod · 0.45

Tested by

no test coverage detected