1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-31 21:45:33 +00:00

Issue #256: added getTimeStamp function to World

This commit is contained in:
Marc Zinnschlag 2012-05-19 09:31:45 +02:00
parent a4343bfa18
commit 74ae3605e0
2 changed files with 10 additions and 0 deletions

View file

@ -471,6 +471,12 @@ namespace MWWorld
mRendering->skySetDate (mGlobalVariables->getInt ("day"), month);
}
TimeStamp World::getTimeStamp() const
{
return TimeStamp (mGlobalVariables->getFloat ("gamehour"),
mGlobalVariables->getInt ("dayspassed"));
}
bool World::toggleSky()
{
if (mSky)

View file

@ -18,6 +18,7 @@
#include "physicssystem.hpp"
#include "cells.hpp"
#include "localscripts.hpp"
#include "timestamp.hpp"
#include <openengine/bullet/physic.hpp>
#include <openengine/ogre/fader.hpp>
@ -185,6 +186,9 @@ namespace MWWorld
void setDay (int day);
///< Set in-game time day.
TimeStamp getTimeStamp() const;
///< Return current in-game time stamp.
bool toggleSky();
///< \return Resulting mode