mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-25 06:35:30 +00:00
Issue #256: added getTimeStamp function to World
This commit is contained in:
parent
a4343bfa18
commit
74ae3605e0
@ -471,6 +471,12 @@ namespace MWWorld
|
|||||||
mRendering->skySetDate (mGlobalVariables->getInt ("day"), month);
|
mRendering->skySetDate (mGlobalVariables->getInt ("day"), month);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
TimeStamp World::getTimeStamp() const
|
||||||
|
{
|
||||||
|
return TimeStamp (mGlobalVariables->getFloat ("gamehour"),
|
||||||
|
mGlobalVariables->getInt ("dayspassed"));
|
||||||
|
}
|
||||||
|
|
||||||
bool World::toggleSky()
|
bool World::toggleSky()
|
||||||
{
|
{
|
||||||
if (mSky)
|
if (mSky)
|
||||||
|
@ -18,6 +18,7 @@
|
|||||||
#include "physicssystem.hpp"
|
#include "physicssystem.hpp"
|
||||||
#include "cells.hpp"
|
#include "cells.hpp"
|
||||||
#include "localscripts.hpp"
|
#include "localscripts.hpp"
|
||||||
|
#include "timestamp.hpp"
|
||||||
|
|
||||||
#include <openengine/bullet/physic.hpp>
|
#include <openengine/bullet/physic.hpp>
|
||||||
#include <openengine/ogre/fader.hpp>
|
#include <openengine/ogre/fader.hpp>
|
||||||
@ -185,6 +186,9 @@ namespace MWWorld
|
|||||||
void setDay (int day);
|
void setDay (int day);
|
||||||
///< Set in-game time day.
|
///< Set in-game time day.
|
||||||
|
|
||||||
|
TimeStamp getTimeStamp() const;
|
||||||
|
///< Return current in-game time stamp.
|
||||||
|
|
||||||
bool toggleSky();
|
bool toggleSky();
|
||||||
///< \return Resulting mode
|
///< \return Resulting mode
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user