AlpacaLibrary/Include/Game/Tools/BreakHandler.hpp

32 lines
735 B
C++
Raw Normal View History

2017-12-25 23:49:48 +00:00
#ifndef BREAKHANDLER_HPP_INCLUDED
#define BREAKHANDLER_HPP_INCLUDED
#include "../../Core/Types/Timer.hpp"
#include "../../Core/Types/Counter.hpp"
2018-12-27 18:17:09 +00:00
namespace BreakHandler
2017-12-25 23:49:48 +00:00
{
2018-12-27 18:17:09 +00:00
Counter GetBreakCounter();
Timer GetBreakTimer();
2017-12-25 23:49:48 +00:00
2018-12-27 18:17:09 +00:00
bool MiniBreak(bool Logout = true);
bool ShortBreak(bool Logout = true);
bool LongBreak(bool Logout = true);
bool Break(bool LogoutOnLong = true, bool LogoutOnShort = true, bool LogoutOnMini = false);
2020-08-23 23:18:45 +00:00
struct BreakTime
{
std::int64_t TimeOfLastBreak = 0;
std::int64_t BreakEvery;
std::int64_t BreakFor;
};
BreakTime GetMiniBreakTime();
BreakTime GetShortBreakTime();
BreakTime GetLongBreakTime();
2018-12-31 21:52:58 +00:00
}
2017-12-25 23:49:48 +00:00
#endif // BREAKHANDLER_HPP_INCLUDED