diff options
author | Kargatum <dowlandtop@yandex.com> | 2020-10-12 15:08:15 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-12 10:08:15 +0200 |
commit | a2b26272d28f137473c4e14841da0f042e3e8bdc (patch) | |
tree | 43a44857f92affd0ffd220a2fc09951e6ddd3f92 /src/server/game/Grids/ObjectGridLoader.h | |
parent | e99b526e17ce628e919347dff4c150cd6645d01b (diff) |
refactor(Core/Game): restyle game lib with astyle (#3466)
Diffstat (limited to 'src/server/game/Grids/ObjectGridLoader.h')
-rw-r--r-- | src/server/game/Grids/ObjectGridLoader.h | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/src/server/game/Grids/ObjectGridLoader.h b/src/server/game/Grids/ObjectGridLoader.h index c00e66ebd0..b9f12c0669 100644 --- a/src/server/game/Grids/ObjectGridLoader.h +++ b/src/server/game/Grids/ObjectGridLoader.h @@ -19,40 +19,40 @@ class ObjectGridLoader { friend class ObjectWorldLoader; - public: - ObjectGridLoader(NGridType &grid, Map* map, const Cell &cell) - : i_cell(cell), i_grid(grid), i_map(map), i_gameObjects(0), i_creatures(0), i_corpses (0) - {} - - void Visit(GameObjectMapType &m); - void Visit(CreatureMapType &m); - void Visit(CorpseMapType &) const {} - void Visit(DynamicObjectMapType&) const {} - - void LoadN(void); - - template<class T> static void SetObjectCell(T* obj, CellCoord const& cellCoord); - - private: - Cell i_cell; - NGridType &i_grid; - Map* i_map; - uint32 i_gameObjects; - uint32 i_creatures; - uint32 i_corpses; +public: + ObjectGridLoader(NGridType& grid, Map* map, const Cell& cell) + : i_cell(cell), i_grid(grid), i_map(map), i_gameObjects(0), i_creatures(0), i_corpses (0) + {} + + void Visit(GameObjectMapType& m); + void Visit(CreatureMapType& m); + void Visit(CorpseMapType&) const {} + void Visit(DynamicObjectMapType&) const {} + + void LoadN(void); + + template<class T> static void SetObjectCell(T* obj, CellCoord const& cellCoord); + +private: + Cell i_cell; + NGridType& i_grid; + Map* i_map; + uint32 i_gameObjects; + uint32 i_creatures; + uint32 i_corpses; }; //Clean up and remove from world class ObjectGridCleaner { - public: - template<class T> void Visit(GridRefManager<T> &); +public: + template<class T> void Visit(GridRefManager<T>&); }; //Delete objects before deleting NGrid class ObjectGridUnloader { - public: - template<class T> void Visit(GridRefManager<T> &m); +public: + template<class T> void Visit(GridRefManager<T>& m); }; #endif |