1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-27 03:35:27 +00:00
OpenMW/apps/openmw/mwbase/environment.cpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
557 B
C++
Raw Normal View History

#include "environment.hpp"
#include <cassert>
2020-12-29 21:45:59 +01:00
#include <components/resource/resourcesystem.hpp>
#include "world.hpp"
#include "mechanicsmanager.hpp"
2020-11-13 11:39:47 +04:00
MWBase::Environment *MWBase::Environment::sThis = nullptr;
MWBase::Environment::Environment()
{
assert(sThis == nullptr);
sThis = this;
}
MWBase::Environment::~Environment()
{
2020-11-13 11:39:47 +04:00
sThis = nullptr;
}
void MWBase::Environment::reportStats(unsigned int frameNumber, osg::Stats& stats) const
{
mMechanicsManager->reportStats(frameNumber, stats);
mWorld->reportStats(frameNumber, stats);
}