diff options
author | Traesh <nicolas.queniro@gmail.com> | 2023-08-27 20:06:48 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2023-08-27 20:06:48 +0200 |
commit | 2cdf0a44b22c783a150f0774eb0917a8db69b162 (patch) | |
tree | 16142f9cb45e12a40fdfdc3928610a403d102138 | |
parent | 3b7a31fc81b43116781622f67257f71a0405aebb (diff) |
Core/Scripts: Add multiple "Pass parameters between AI" methods on AreaTriggerAI
Ref #29215
-rw-r--r-- | src/server/game/AI/CoreAI/AreaTriggerAI.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/server/game/AI/CoreAI/AreaTriggerAI.h b/src/server/game/AI/CoreAI/AreaTriggerAI.h index 77924dae86c..55e8f188586 100644 --- a/src/server/game/AI/CoreAI/AreaTriggerAI.h +++ b/src/server/game/AI/CoreAI/AreaTriggerAI.h @@ -19,6 +19,7 @@ #define TRINITY_AREATRIGGERAI_H #include "Define.h" +#include "ObjectGuid.h" class AreaTrigger; class Spell; @@ -58,8 +59,15 @@ class TC_GAME_API AreaTriggerAI // Called when the AreaTrigger is removed virtual void OnRemove() { } + // Pass parameters between AI + virtual void DoAction([[maybe_unused]] int32 param) { } + virtual uint32 GetData([[maybe_unused]] uint32 id = 0) const { return 0; } + virtual void SetData([[maybe_unused]] uint32 id, [[maybe_unused]] uint32 value) { } + virtual void SetGUID([[maybe_unused]] ObjectGuid const& guid, [[maybe_unused]] int32 id = 0) { } + virtual ObjectGuid GetGUID([[maybe_unused]] int32 id = 0) const { return ObjectGuid::Empty; } + // Gets the id of the AI (script id) - uint32 GetId() { return _scriptId; } + uint32 GetId() const { return _scriptId; } }; class NullAreaTriggerAI : public AreaTriggerAI |