mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Conversation: Implemented OnConversationStart and OnConversationUpdate hooks (#29086)
This commit is contained in:
@@ -2259,6 +2259,14 @@ void ScriptMgr::OnConversationCreate(Conversation* conversation, Unit* creator)
|
||||
tmpscript->OnConversationCreate(conversation, creator);
|
||||
}
|
||||
|
||||
void ScriptMgr::OnConversationStart(Conversation* conversation)
|
||||
{
|
||||
ASSERT(conversation);
|
||||
|
||||
GET_SCRIPT(ConversationScript, conversation->GetScriptId(), tmpscript);
|
||||
tmpscript->OnConversationStart(conversation);
|
||||
}
|
||||
|
||||
void ScriptMgr::OnConversationLineStarted(Conversation* conversation, uint32 lineId, Player* sender)
|
||||
{
|
||||
ASSERT(conversation);
|
||||
@@ -2268,6 +2276,14 @@ void ScriptMgr::OnConversationLineStarted(Conversation* conversation, uint32 lin
|
||||
tmpscript->OnConversationLineStarted(conversation, lineId, sender);
|
||||
}
|
||||
|
||||
void ScriptMgr::OnConversationUpdate(Conversation* conversation, uint32 diff)
|
||||
{
|
||||
ASSERT(conversation);
|
||||
|
||||
GET_SCRIPT(ConversationScript, conversation->GetScriptId(), tmpscript);
|
||||
tmpscript->OnConversationUpdate(conversation, diff);
|
||||
}
|
||||
|
||||
// Scene
|
||||
void ScriptMgr::OnSceneStart(Player* player, uint32 sceneInstanceID, SceneTemplate const* sceneTemplate)
|
||||
{
|
||||
@@ -3125,10 +3141,18 @@ void ConversationScript::OnConversationCreate(Conversation* /*conversation*/, Un
|
||||
{
|
||||
}
|
||||
|
||||
void ConversationScript::OnConversationStart(Conversation* /*conversation*/ )
|
||||
{
|
||||
}
|
||||
|
||||
void ConversationScript::OnConversationLineStarted(Conversation* /*conversation*/, uint32 /*lineId*/, Player* /*sender*/)
|
||||
{
|
||||
}
|
||||
|
||||
void ConversationScript::OnConversationUpdate(Conversation* /*conversation*/, uint32 /*diff*/)
|
||||
{
|
||||
}
|
||||
|
||||
SceneScript::SceneScript(char const* name)
|
||||
: ScriptObject(name)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user