Core/Scripts: Split OnCreatureCreate() and OnGameObjectCreate() into two virtual functions each.

Note to scripters: be aware that you will need to hook into the Remove functions if you want to do stuff at GO/creature removal.
Closes issue 5011.

--HG--
branch : trunk
This commit is contained in:
leak
2010-12-05 18:04:10 +01:00
parent dfa1e9532b
commit 6fe19b5a86
65 changed files with 1139 additions and 1132 deletions
+4 -2
View File
@@ -33,8 +33,10 @@ class ZoneScript
virtual uint32 GetCreatureEntry(uint32 /*guidlow*/, const CreatureData *data) { return data->id; }
virtual uint32 GetGameObjectEntry(uint32 /*guidlow*/, uint32 entry) { return entry; }
virtual void OnCreatureCreate(Creature *, bool /*add*/) {}
virtual void OnGameObjectCreate(GameObject * /*go*/, bool /*add*/) {}
virtual void OnCreatureCreate(Creature *) {}
virtual void OnCreatureRemove(Creature *) {}
virtual void OnGameObjectCreate(GameObject *) {}
virtual void OnGameObjectRemove(GameObject *) {}
//All-purpose data storage 64 bit
virtual uint64 GetData64(uint32 /*DataId*/) { return 0; }