aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Entities/GameObject
diff options
context:
space:
mode:
authorGiacomo Pozzoni <giacomopoz@gmail.com>2020-07-14 07:34:03 +0000
committerShauren <shauren.trinity@gmail.com>2022-01-23 15:17:54 +0100
commite9cf3828bad44cf193d6c9717b392de7346157a5 (patch)
tree82f013fe88a01d23f2a902b28a28140035589b74 /src/server/game/Entities/GameObject
parenta55801e35ed22fdcecbd656a894a7c8320c28743 (diff)
Core/Spells: Implement SPELL_EFFECT_ACTIVATE_OBJECT. (#23) (#24997)
* Core/Spells: Implement SPELL_EFFECT_ACTIVATE_OBJECT. (#23) Original research by @xvwyh. * Add missing sql update * Fix some build errors * Remove unused enum values * Change artkits from 0-4 to 0-3 * Remove unused code * Code review feedback * Fix sql * Remove artkit4 special case handling * Default initialize artKits * Code review feedback * Split sql into structure and data files Co-authored-by: Warpten <vertozor@gmail.com> (cherry picked from commit 203573db83fb1d3f141b5aadbf1d1ca0a637bf94)
Diffstat (limited to 'src/server/game/Entities/GameObject')
-rw-r--r--src/server/game/Entities/GameObject/GameObjectData.h52
1 files changed, 52 insertions, 0 deletions
diff --git a/src/server/game/Entities/GameObject/GameObjectData.h b/src/server/game/Entities/GameObject/GameObjectData.h
index 242f25f7d38..6bfa3d61e59 100644
--- a/src/server/game/Entities/GameObject/GameObjectData.h
+++ b/src/server/game/Entities/GameObject/GameObjectData.h
@@ -24,6 +24,7 @@
#include "SharedDefines.h"
#include "SpawnData.h"
#include "WorldPacket.h"
+#include <array>
#include <string>
// from `gameobject_template`
@@ -1085,6 +1086,7 @@ struct GameObjectTemplateAddon : public GameObjectOverride
{
uint32 Mingold;
uint32 Maxgold;
+ std::array<uint32, 5> ArtKits = { };
uint32 WorldEffectID;
uint32 AIAnimKitID;
};
@@ -1116,4 +1118,54 @@ struct GameObjectData : public SpawnData
uint8 artKit = 0;
};
+enum class GameObjectActions : uint32
+{
+ // Name from client executable // Comments
+ None = 0, // -NONE-
+ AnimateCustom0 = 1, // Animate Custom0
+ AnimateCustom1 = 2, // Animate Custom1
+ AnimateCustom2 = 3, // Animate Custom2
+ AnimateCustom3 = 4, // Animate Custom3
+ Disturb = 5, // Disturb // Triggers trap
+ Unlock = 6, // Unlock // Resets GO_FLAG_LOCKED
+ Lock = 7, // Lock // Sets GO_FLAG_LOCKED
+ Open = 8, // Open // Sets GO_STATE_ACTIVE
+ OpenAndUnlock = 9, // Open + Unlock // Sets GO_STATE_ACTIVE and resets GO_FLAG_LOCKED
+ Close = 10, // Close // Sets GO_STATE_READY
+ ToggleOpen = 11, // Toggle Open
+ Destroy = 12, // Destroy // Sets GO_STATE_DESTROYED
+ Rebuild = 13, // Rebuild // Resets from GO_STATE_DESTROYED
+ Creation = 14, // Creation
+ Despawn = 15, // Despawn
+ MakeInert = 16, // Make Inert // Disables interactions
+ MakeActive = 17, // Make Active // Enables interactions
+ CloseAndLock = 18, // Close + Lock // Sets GO_STATE_READY and sets GO_FLAG_LOCKED
+ UseArtKit0 = 19, // Use ArtKit0 // 46904: 121
+ UseArtKit1 = 20, // Use ArtKit1 // 36639: 81, 46903: 122
+ UseArtKit2 = 21, // Use ArtKit2
+ UseArtKit3 = 22, // Use ArtKit3
+ SetTapList = 23, // Set Tap List
+ GoTo1stFloor = 24, // Go to 1st floor
+ GoTo2ndFloor = 25, // Go to 2nd floor
+ GoTo3rdFloor = 26, // Go to 3rd floor
+ GoTo4thFloor = 27, // Go to 4th floor
+ GoTo5thFloor = 28, // Go to 5th floor
+ GoTo6thFloor = 29, // Go to 6th floor
+ GoTo7thFloor = 30, // Go to 7th floor
+ GoTo8thFloor = 31, // Go to 8th floor
+ GoTo9thFloor = 32, // Go to 9th floor
+ GoTo10thFloor = 33, // Go to 10th floor
+ UseArtKit4 = 34, // Use ArtKit4
+ PlayAnimKit = 35, // Play Anim Kit "{AnimKit}"
+ OpenAndPlayAnimKit = 36, // Open + Play Anim Kit "{AnimKit}"
+ CloseAndPlayAnimKit = 37, // Close + Play Anim Kit "{AnimKit}"
+ PlayOneShotAnimKit = 38, // Play One-shot Anim Kit "{AnimKit}"
+ StopAnimKit = 39, // Stop Anim Kit
+ OpenAndStopAnimKit = 40, // Open + Stop Anim Kit
+ CloseAndStopAnimKit = 41, // Close + Stop Anim Kit
+ PlaySpellVisual = 42, // Play Spell Visual "{SpellVisual}"
+ StopSpellVisual = 43, // Stop Spell Visual
+ SetTappedToChallengePlayers = 44, // Set Tapped to Challenge Players
+};
+
#endif // GameObjectData_h__