53 std::list<CYITime::UpdateListener*>::iterator m_LocationKey;
121 std::chrono::microseconds m_nFrameTime;
122 std::chrono::microseconds m_nRefTime;
123 float m_fDilationFactor;
125 std::list<CYITime::UpdateListener *> m_timeUpdateListenerList;
126 std::list<CYITime::UpdateListener *> m_timeUpdateListenerRemoveList;
128 bool m_bTimeUpdateInProgress;
129 uint32_t m_uLastUpdateStatusFlags;
134 #endif // _YI_TIME_H_ virtual ~UpdateListener()
void SetTimeDilationFactor(float fFactor)
bool HasListeners() const
virtual bool OnFrameTimeUpdated(std::chrono::microseconds nFrameTime)=0
void NotifyTimeUpdated(std::chrono::microseconds nFrameTime)
uint32_t GetLastUpdateStatus()
friend class CYITime
Definition: YiTime.h:33
void UnregisterTimeUpdateListener(CYITime::UpdateListener *pListener)
static const uint32_t UPDATE_STATUS_NONE
Definition: YiTime.h:27
static const uint32_t UPDATE_STATUS_DISABLE_INPUT
Definition: YiTime.h:28
global class used to notify the system of time updates
Definition: YiTime.h:24
virtual bool GetDisablesInput()
static const uint32_t UPDATE_STATUS_SCENE_DIRTY
Definition: YiTime.h:29
void RegisterTimeUpdateListener(CYITime::UpdateListener *pListener)
std::chrono::microseconds GetFrameTime()