diff options
author | megamage <none@none> | 2009-03-11 12:03:43 -0600 |
---|---|---|
committer | megamage <none@none> | 2009-03-11 12:03:43 -0600 |
commit | 6f4e33c611f0960c7c30ed5f6e8ff5da20c9c3fe (patch) | |
tree | 25a29a2011698a8613cab559932669821da262d5 /src/game/GridNotifiers.h | |
parent | 444bf06830c5331ee3ea5ecec33939705cf67960 (diff) | |
parent | 3c5a92dbe0a1f140bbc7e1d9497e9e5d0d09e514 (diff) |
*Merge.
--HG--
branch : trunk
Diffstat (limited to 'src/game/GridNotifiers.h')
-rw-r--r-- | src/game/GridNotifiers.h | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/src/game/GridNotifiers.h b/src/game/GridNotifiers.h index 788f3361595..74e10be31a8 100644 --- a/src/game/GridNotifiers.h +++ b/src/game/GridNotifiers.h @@ -38,7 +38,7 @@ class Player; namespace Trinity { - struct TRINITY_DLL_DECL PlayerRelocationNotifier + struct TRINITY_DLL_DECL PlayerVisibilityNotifier { Player &i_player; UpdateData i_data; @@ -46,17 +46,27 @@ namespace Trinity Player::ClientGUIDs i_clientGUIDs; std::set<WorldObject*> i_visibleNow; - PlayerRelocationNotifier(Player &player) : i_player(player),i_clientGUIDs(player.m_clientGUIDs) {} + PlayerVisibilityNotifier(Player &player) : i_player(player),i_clientGUIDs(player.m_clientGUIDs) {} template<class T> inline void Visit(GridRefManager<T> &); - #ifdef WIN32 + /*#ifdef WIN32 template<> inline void Visit(PlayerMapType &); template<> inline void Visit(CreatureMapType &); - #endif + #endif*/ void Notify(void); }; + struct TRINITY_DLL_DECL PlayerRelocationNotifier : public PlayerVisibilityNotifier + { + PlayerRelocationNotifier(Player &player) : PlayerVisibilityNotifier(player) {} + template<class T> inline void Visit(GridRefManager<T> &m) { PlayerVisibilityNotifier::Visit(m); } + #ifdef WIN32 + template<> inline void Visit(PlayerMapType &); + template<> inline void Visit(CreatureMapType &); + #endif + }; + struct TRINITY_DLL_DECL CreatureRelocationNotifier { Creature &i_creature; |