prime/include/Kyoto/CTimeProvider.hpp

21 lines
395 B
C++
Raw Normal View History

#ifndef _CTIMEPROVIDER
#define _CTIMEPROVIDER
2022-09-14 05:53:26 +00:00
#include <types.h>
class CTimeProvider {
2022-09-14 05:53:26 +00:00
static CTimeProvider* gCurrentTimeProvider;
public:
CTimeProvider(const float& time);
~CTimeProvider();
2022-09-14 05:53:26 +00:00
float GetSecondsMod900() const { return x0_currentTime; }
2022-09-18 06:05:46 +00:00
private:
2022-09-14 05:53:26 +00:00
const float& x0_currentTime; // in seconds
bool x4_first;
CTimeProvider* x8_lastProvider;
};
#endif // _CTIMEPROVIDER