Add function World::isCellActive

dont-compose-content
Petr Mikheev 4 years ago
parent 702eb19271
commit 43b7e6964a

@ -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…
Cancel
Save