metaforce/Runtime/CGameState.cpp

22 lines
440 B
C++
Raw Normal View History

#include "CGameState.hpp"
2015-08-23 23:58:07 +00:00
#include "IOStreams.hpp"
2016-03-28 08:54:02 +00:00
#include "zeus/Math.hpp"
2016-03-04 23:04:53 +00:00
namespace urde
{
2016-03-19 19:19:43 +00:00
CGameState::CGameState(CBitStreamReader& stream)
2015-08-20 02:52:07 +00:00
: m_stateFlag(stream.readUint32Big()), m_playerState(stream), m_gameTime(stream.readFloatBig())
{}
void CGameState::SetCurrentWorldId(unsigned int id, const std::string& name)
{
}
2016-03-28 08:54:02 +00:00
void CGameState::SetTotalPlayTime(float time)
{
xa0_playTime = zeus::clamp<double>(0.0, time, 359999.0);
}
}