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:
parent
a4343bfa18
commit
74ae3605e0
@ -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)
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user