mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-07 13:20:25 +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 MWWorld::CellStore *getCell (const ESM::CellId& id) = 0;
|
||||||
|
|
||||||
|
virtual bool isCellActive(MWWorld::CellStore* cell) const = 0;
|
||||||
|
|
||||||
virtual void testExteriorCells() = 0;
|
virtual void testExteriorCells() = 0;
|
||||||
virtual void testInteriorCells() = 0;
|
virtual void testInteriorCells() = 0;
|
||||||
|
|
||||||
|
@ -570,6 +570,11 @@ namespace MWWorld
|
|||||||
return getInterior (id.mWorldspace);
|
return getInterior (id.mWorldspace);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool World::isCellActive(CellStore* cell) const
|
||||||
|
{
|
||||||
|
return mWorldScene->getActiveCells().count(cell) > 0;
|
||||||
|
}
|
||||||
|
|
||||||
void World::testExteriorCells()
|
void World::testExteriorCells()
|
||||||
{
|
{
|
||||||
mWorldScene->testExteriorCells();
|
mWorldScene->testExteriorCells();
|
||||||
|
@ -216,6 +216,8 @@ namespace MWWorld
|
|||||||
|
|
||||||
CellStore *getCell (const ESM::CellId& id) override;
|
CellStore *getCell (const ESM::CellId& id) override;
|
||||||
|
|
||||||
|
bool isCellActive(CellStore* cell) const override;
|
||||||
|
|
||||||
void testExteriorCells() override;
|
void testExteriorCells() override;
|
||||||
void testInteriorCells() override;
|
void testInteriorCells() override;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user