aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Maps/ZoneScript.h
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2014-09-14 23:23:23 +0200
committerShauren <shauren.trinity@gmail.com>2014-09-14 23:23:23 +0200
commit56f46e3ce543af8ffdc708eaa4ceecc173a5eb29 (patch)
tree90922cd7f1177a7fb6601812f7e9212765a89765 /src/server/game/Maps/ZoneScript.h
parentd72c4085de0b2ac0ff3bee24a5dae80c0d5dac2c (diff)
Scripts
* Introduced GetGuidData/SetGuidData to store guids in instance scripts (GetData64/SetData64 are still there) * CONDITION_INSTANCE_INFO: Changed existing DATA64 condition to GUID_DATA to preserve current use of this instance info type (most/all assume the data is a guid) and moved DATA64 to a different value - no db changes needed * Fixed compile in boss scripts starting with letter A
Diffstat (limited to 'src/server/game/Maps/ZoneScript.h')
-rw-r--r--src/server/game/Maps/ZoneScript.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/server/game/Maps/ZoneScript.h b/src/server/game/Maps/ZoneScript.h
index 5925806db75..9b1f7622b54 100644
--- a/src/server/game/Maps/ZoneScript.h
+++ b/src/server/game/Maps/ZoneScript.h
@@ -41,6 +41,9 @@ class ZoneScript
virtual void OnUnitDeath(Unit*) { }
//All-purpose data storage 64 bit
+ virtual ObjectGuid GetGuidData(uint32 /*DataId*/) const { return ObjectGuid::Empty; }
+ virtual void SetGuidData(uint32 /*DataId*/, ObjectGuid /*Value*/) { }
+
virtual uint64 GetData64(uint32 /*DataId*/) const { return 0; }
virtual void SetData64(uint32 /*DataId*/, uint64 /*Value*/) { }