Move some grid object functions into one parent class
--HG-- branch : trunk
This commit is contained in:
@@ -448,6 +448,15 @@ class WorldLocation : public Position
|
||||
uint32 m_mapId;
|
||||
};
|
||||
|
||||
template<class T>
|
||||
class GridObject
|
||||
{
|
||||
public:
|
||||
GridReference<T> &GetGridRef() { return m_gridRef; }
|
||||
protected:
|
||||
GridReference<T> m_gridRef;
|
||||
};
|
||||
|
||||
class TRINITY_DLL_SPEC WorldObject : public Object, public WorldLocation
|
||||
{
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user