#include "environment.hpp" #include #include #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); }