diff options
Diffstat (limited to 'src/framework/GameSystem/Grid.h')
-rw-r--r-- | src/framework/GameSystem/Grid.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/framework/GameSystem/Grid.h b/src/framework/GameSystem/Grid.h index a60b7306efb..fffa8120883 100644 --- a/src/framework/GameSystem/Grid.h +++ b/src/framework/GameSystem/Grid.h @@ -120,6 +120,15 @@ class TRINITY_DLL_DECL Grid */ template<class SPECIFIC_OBJECT> bool RemoveGridObject(SPECIFIC_OBJECT *obj, OBJECT_HANDLE hdl) { return i_container.template remove<SPECIFIC_OBJECT>(obj, hdl); } + bool NoWorldObjectInGrid() const + { + return i_objects.GetElements().isEmpty(); + } + + bool NoGridObjectInGrid() const + { + return i_container.GetElements().isEmpty(); + } private: typedef typename ThreadModel::Lock Guard; |