mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-30 07:21:12 +00:00
Add function World::isCellActive
This commit is contained in:
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…
x
Reference in New Issue
Block a user