feat(Core): add OnDisplayId hook (#12320)

This commit is contained in:
Axel Cocat
2022-07-11 14:11:26 +02:00
committed by GitHub
parent 4d888f9431
commit aa89f6c3a6
3 changed files with 13 additions and 0 deletions

View File

@@ -459,6 +459,8 @@ public:
* @param diff Contains information about the diff time
*/
virtual void OnUnitUpdate(Unit* /*unit*/, uint32 /*diff*/) { }
virtual void OnDisplayIdChange(Unit* /*unit*/, uint32 /*displayId*/) { }
};
class MovementHandlerScript : public ScriptObject
@@ -2400,6 +2402,7 @@ public: /* UnitScript */
bool IsCustomBuildValuesUpdate(Unit const* unit, uint8 updateType, ByteBuffer& fieldBuffer, Player const* target, uint16 index);
bool OnBuildValuesUpdate(Unit const* unit, uint8 updateType, ByteBuffer& fieldBuffer, Player* target, uint16 index);
void OnUnitUpdate(Unit* unit, uint32 diff);
void OnDisplayIdChange(Unit* unit, uint32 displayId);
public: /* MovementHandlerScript */
void OnPlayerMove(Player* player, MovementInfo movementInfo, uint32 opcode);