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:
parent
a4343bfa18
commit
74ae3605e0
2 changed files with 10 additions and 0 deletions
|
@ -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 a new issue