From 76c928cd2c8f23f92a28df05a05df41a10b9292c Mon Sep 17 00:00:00 2001 From: hondacrx Date: Thu, 14 Sep 2023 07:01:50 -0400 Subject: [PATCH] Core/Scripts: Add multiple "Pass parameters between AI" methods on AreaTriggerAI Port From (https://github.com/TrinityCore/TrinityCore/commit/2cdf0a44b22c783a150f0774eb0917a8db69b162) --- Source/Game/AI/CoreAI/AreaTriggerAI.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Source/Game/AI/CoreAI/AreaTriggerAI.cs b/Source/Game/AI/CoreAI/AreaTriggerAI.cs index 281fce946..5e54eacfd 100644 --- a/Source/Game/AI/CoreAI/AreaTriggerAI.cs +++ b/Source/Game/AI/CoreAI/AreaTriggerAI.cs @@ -38,6 +38,13 @@ namespace Game.AI // Called when the AreaTrigger is removed public virtual void OnRemove() { } + + // Pass parameters between AI + public virtual void DoAction(int param) { } + public virtual uint GetData(uint id = 0) { return 0; } + public virtual void SetData(uint id, uint value) { } + public virtual void SetGUID(ObjectGuid guid, int id = 0) { } + public virtual ObjectGuid GetGUID(int id = 0) { return ObjectGuid.Empty; } } class NullAreaTriggerAI : AreaTriggerAI