| 1 |
#pragma once |
| 2 |
|
| 3 |
#include "imodule.h" |
| 4 |
#include "math/AABB.h" |
| 5 |
|
| 6 |
namespace map |
| 7 |
{ |
| 8 |
|
| 9 |
class IRegionManager : |
| 10 |
public RegisterableModule |
| 11 |
{ |
| 12 |
public: |
| 13 |
virtual ~IRegionManager() {} |
| 14 |
|
| 15 |
/** |
| 16 |
' greebo: Stores the corners coordinates of the currently active |
| 17 |
* region into the given <regionMin>, <regionMax> vectors. |
| 18 |
* If regioning is inactive, the maximum possible bounds are returned. |
| 19 |
*/ |
| 20 |
virtual AABB getRegionBounds() = 0; |
| 21 |
}; |
| 22 |
|
| 23 |
} // namespace |
| 24 |
|
| 25 |
const char* const MODULE_REGION_MANAGER = "RegionManager"; |
| 26 |
|
| 27 |
inline map::IRegionManager& GlobalRegionManager() |
| 28 |
{ |
| 29 |
static module::InstanceReference<map::IRegionManager> _reference(MODULE_REGION_MANAGER); |
| 30 |
return _reference; |
| 31 |
} |