diff options
author | silver1ce <none@none> | 2010-02-03 16:53:40 +0200 |
---|---|---|
committer | silver1ce <none@none> | 2010-02-03 16:53:40 +0200 |
commit | a307ba784c1c658902b0d7195e1cfca038a155f5 (patch) | |
tree | 23542b941fc006fd0fe586dc223571709ec9fc69 /src/game/ObjectAccessor.h | |
parent | 23bdbf1ad3bf50696724e3502ab1775a26f2886e (diff) |
*Move object's field\visibility update functions to object from accessor
removed useless SendUpdateObjectToAllExcept - anyway fields will be updated, there is no sense to force update them
--HG--
branch : trunk
Diffstat (limited to 'src/game/ObjectAccessor.h')
-rw-r--r-- | src/game/ObjectAccessor.h | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/src/game/ObjectAccessor.h b/src/game/ObjectAccessor.h index d0684944dc3..722e40a33dd 100644 --- a/src/game/ObjectAccessor.h +++ b/src/game/ObjectAccessor.h @@ -232,26 +232,9 @@ class TRINITY_DLL_DECL ObjectAccessor : public Trinity::Singleton<ObjectAccessor void AddCorpsesToGrid(GridPair const& gridpair,GridType& grid,Map* map); Corpse* ConvertCorpseForPlayer(uint64 player_guid, bool insignia = false); - static void UpdateObject(Object* obj, Player* exceptPlayer); - static void _buildUpdateObject(Object* obj, UpdateDataMapType &); - - static void UpdateObjectVisibility(WorldObject* obj); //static void UpdateVisibilityForPlayer(Player* player); private: - struct WorldObjectChangeAccumulator - { - UpdateDataMapType &i_updateDatas; - WorldObject &i_object; - std::set<uint64> plr_list; - WorldObjectChangeAccumulator(WorldObject &obj, UpdateDataMapType &d) : i_updateDatas(d), i_object(obj) {} - void Visit(PlayerMapType &); - void Visit(CreatureMapType &); - void Visit(DynamicObjectMapType &); - void BuildPacket(Player* plr); - template<class SKIP> void Visit(GridRefManager<SKIP> &) {} - }; - - friend struct WorldObjectChangeAccumulator; + Player2CorpsesMapType i_player2corpse; typedef ACE_Thread_Mutex LockType; |