mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
Core/Conversation: Implemented OnConversationStart and OnConversationUpdate hooks (#29086)
This commit is contained in:
@@ -923,8 +923,14 @@ class TC_GAME_API ConversationScript : public ScriptObject
|
||||
// Called when Conversation is created but not added to Map yet.
|
||||
virtual void OnConversationCreate(Conversation* conversation, Unit* creator);
|
||||
|
||||
// Called when Conversation is started
|
||||
virtual void OnConversationStart(Conversation* conversation);
|
||||
|
||||
// Called when player sends CMSG_CONVERSATION_LINE_STARTED with valid conversation guid
|
||||
virtual void OnConversationLineStarted(Conversation* conversation, uint32 lineId, Player* sender);
|
||||
|
||||
// Called for each update tick
|
||||
virtual void OnConversationUpdate(Conversation* conversation, uint32 diff);
|
||||
};
|
||||
|
||||
class TC_GAME_API SceneScript : public ScriptObject
|
||||
@@ -1269,7 +1275,9 @@ class TC_GAME_API ScriptMgr
|
||||
public: /* ConversationScript */
|
||||
|
||||
void OnConversationCreate(Conversation* conversation, Unit* creator);
|
||||
void OnConversationStart(Conversation* conversation);
|
||||
void OnConversationLineStarted(Conversation* conversation, uint32 lineId, Player* sender);
|
||||
void OnConversationUpdate(Conversation* conversation, uint32 diff);
|
||||
|
||||
public: /* SceneScript */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user