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