AlpacaLibrary/Include/Game/Interfaces/GameTabs/Logout.hpp

35 lines
1.3 KiB
C++
Raw Normal View History

2017-12-25 23:49:48 +00:00
#ifndef LOGOUT_HPP_INCLUDED
#define LOGOUT_HPP_INCLUDED
#include "../../../Core/Types/Box.hpp"
#include "../../../Core/Classes/World.hpp"
2018-09-27 23:35:31 +00:00
#include "../../../Game/Interactable/Widget.hpp"
2017-12-25 23:49:48 +00:00
#include <cstdint>
#include <vector>
/** @addtogroup GameTabs
* @{ */
class Logout
{
public:
static bool IsOpen();
static bool Open();
static bool LogoutPlayer();
2018-12-08 19:31:58 +00:00
static bool IsWorldSwitcherOpen(bool WaitToLoadWorlds = true);
static bool OpenWorldSwitcher(bool WaitToLoadWorlds = true);
2017-12-25 23:49:48 +00:00
2018-05-10 14:03:33 +00:00
static bool WorldSwitcherScrollTo(const Internal::World& World);
2017-12-25 23:49:48 +00:00
static bool WorldSwitcherScrollTo(std::int32_t WorldID);
2018-12-08 19:31:58 +00:00
static bool SwitchWorld(const Internal::World& World, bool AllowPVPWorlds = false, bool SetOnlyWarnAboutDangerousWorlds = false); // SetOnlyWarnAboutFutureWorlds will click "Yes. In future, only warn about dangerous worlds." instead of just "yes"
static bool SwitchWorld(std::int32_t WorldID, bool AllowPVPWorlds = false, bool SetOnlyWarnAboutDangerousWorlds = false); // SetOnlyWarnAboutFutureWorlds will click "Yes. In future, only warn about dangerous worlds." instead of just "yes"
2017-12-25 23:49:48 +00:00
2018-09-27 23:35:31 +00:00
static Interactable::Widget GetWorldWidget(const Internal::World& World);
static Interactable::Widget GetWorldWidget(std::int32_t WorldID);
2017-12-25 23:49:48 +00:00
};
/** @} */
#endif // LOGOUT_HPP_INCLUDED