DragonNest/Server/ServerCommon/CloseSystem.h
2024-12-20 16:56:44 +08:00

22 lines
No EOL
762 B
C++
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.


#pragma once
class CCloseSystem
{
public:
CCloseSystem();
~CCloseSystem();
bool AddClose(__time64_t _tOderedTime, __time64_t _tCloseTime);
bool CancelClose();
bool IsClosing(__time64_t &_tOderedTime, __time64_t &_tCloseTime);
private:
CSyncLock m_Sync;
__time64_t m_tOderedTime;
__time64_t m_tCloseTime;
};
extern CCloseSystem * g_pCloseSystem;