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:
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user