aboutsummaryrefslogtreecommitdiff
path: root/src/game/InstanceData.h
diff options
context:
space:
mode:
authorRat <none@none>2009-04-04 18:07:05 +0200
committerRat <none@none>2009-04-04 18:07:05 +0200
commit3fd4f3d4b342a838b312ecc6bee4837c9a5584dd (patch)
tree5b30d9b9e697bc45f1e8959326995d50a4be0821 /src/game/InstanceData.h
parent1f9efc82ca07ca2d2306f4b5c1887e9024f1b307 (diff)
*added HandleGameObject function to instance, use this to simply open/close doors from scripts
--HG-- branch : trunk
Diffstat (limited to 'src/game/InstanceData.h')
-rw-r--r--src/game/InstanceData.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/game/InstanceData.h b/src/game/InstanceData.h
index cd3a50787ef..ec36a794525 100644
--- a/src/game/InstanceData.h
+++ b/src/game/InstanceData.h
@@ -22,6 +22,8 @@
#define TRINITY_INSTANCE_DATA_H
#include "Common.h"
+#include "GameObject.h"
+#include "Map.h"
class Map;
class Unit;
@@ -68,6 +70,11 @@ class TRINITY_DLL_SPEC InstanceData
//All-purpose data storage 32 bit
virtual uint32 GetData(uint32) { return 0; }
virtual void SetData(uint32, uint32 data) {}
+
+ //Handle open / close objects
+ //use HandleGameObject(NULL,boolen,GO); in OnObjectCreate in instance scripts
+ //use HandleGameObject(GUID,boolen,NULL); in any other script
+ virtual void HandleGameObject(uint64 GUID, bool open, GameObject *go = NULL);
};
#endif