1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-09 21:42:13 +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