1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-30 21:32:42 +00:00
OpenMW/apps/openmw/mwbase/environment.cpp
2022-08-19 22:05:15 +02:00

28 lines
557 B
C++

#include "environment.hpp"
#include <cassert>
#include <components/resource/resourcesystem.hpp>
#include "world.hpp"
#include "mechanicsmanager.hpp"
MWBase::Environment *MWBase::Environment::sThis = nullptr;
MWBase::Environment::Environment()
{
assert(sThis == nullptr);
sThis = this;
}
MWBase::Environment::~Environment()
{
sThis = nullptr;
}
void MWBase::Environment::reportStats(unsigned int frameNumber, osg::Stats& stats) const
{
mMechanicsManager->reportStats(frameNumber, stats);
mWorld->reportStats(frameNumber, stats);
}