mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-18 03:15:41 +00:00
feat(InstanceScripts): new scriptable function DoAction() (#3445)
This will work in a similar way as CreatureAI based DoAction function. This will allow avoiding SetData or ProcessEvent usage where basic input is needed
This commit is contained in:
@@ -210,6 +210,8 @@ class InstanceScript : public ZoneScript
|
||||
|
||||
uint32 GetEncounterCount() const { return bosses.size(); }
|
||||
|
||||
// Allows to perform particular actions
|
||||
virtual void DoAction(int32 /*action*/) {}
|
||||
protected:
|
||||
void SetBossNumber(uint32 number) { bosses.resize(number); }
|
||||
void LoadDoorData(DoorData const* data);
|
||||
|
||||
Reference in New Issue
Block a user