Merge [SD2]

r1276 Add function DoUpdateWorldState() to ScriptedInstance class for sending update to all players in instance.

--HG--
branch : trunk
This commit is contained in:
Kudlaty
2009-08-14 20:56:01 +02:00
parent 686cd6eeff
commit ce21d65aa2
2 changed files with 20 additions and 0 deletions
+3
View File
@@ -149,6 +149,9 @@ class TRINITY_DLL_SPEC InstanceData : public ZoneScript
//Respawns a GO having negative spawntimesecs in gameobject-table
void DoRespawnGameObject(uint64 uiGuid, uint32 uiTimeToDespawn = MINUTE);
//sends world state update to all players in instance
void DoUpdateWorldState(uint32 uiStateId, uint32 uiStateData);
virtual bool SetBossState(uint32 id, EncounterState state);
EncounterState GetBossState(uint32 id) const { return id < bosses.size() ? bosses[id].state : TO_BE_DECIDED; }
const BossBoundaryMap * GetBossBoundary(uint32 id) const { return id < bosses.size() ? &bosses[id].boundary : NULL; }