mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-30 09:45:36 +00:00
Add function World::isCellActive
This commit is contained in:
parent
702eb19271
commit
43b7e6964a
3 changed files with 9 additions and 0 deletions
|
@ -129,6 +129,8 @@ namespace MWBase
|
|||
|
||||
virtual MWWorld::CellStore *getCell (const ESM::CellId& id) = 0;
|
||||
|
||||
virtual bool isCellActive(MWWorld::CellStore* cell) const = 0;
|
||||
|
||||
virtual void testExteriorCells() = 0;
|
||||
virtual void testInteriorCells() = 0;
|
||||
|
||||
|
|
|
@ -570,6 +570,11 @@ namespace MWWorld
|
|||
return getInterior (id.mWorldspace);
|
||||
}
|
||||
|
||||
bool World::isCellActive(CellStore* cell) const
|
||||
{
|
||||
return mWorldScene->getActiveCells().count(cell) > 0;
|
||||
}
|
||||
|
||||
void World::testExteriorCells()
|
||||
{
|
||||
mWorldScene->testExteriorCells();
|
||||
|
|
|
@ -216,6 +216,8 @@ namespace MWWorld
|
|||
|
||||
CellStore *getCell (const ESM::CellId& id) override;
|
||||
|
||||
bool isCellActive(CellStore* cell) const override;
|
||||
|
||||
void testExteriorCells() override;
|
||||
void testInteriorCells() override;
|
||||
|
||||
|
|
Loading…
Reference in a new issue