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

34 lines
1.2 KiB
C++

#ifndef LOGOUT_HPP_INCLUDED
#define LOGOUT_HPP_INCLUDED
#include "../../../Core/Types/Box.hpp"
#include "../../../Core/Classes/World.hpp"
#include "../../../Game/Interactable/Widget.hpp"
#include <cstdint>
#include <vector>
/** @addtogroup GameTabs
* @{ */
namespace Logout
{
bool IsOpen();
bool Open();
bool LogoutPlayer();
bool IsWorldSwitcherOpen(bool WaitToLoadWorlds = true);
bool OpenWorldSwitcher(bool WaitToLoadWorlds = true);
bool WorldSwitcherScrollTo(const Internal::World& World);
bool WorldSwitcherScrollTo(std::int32_t WorldID);
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"
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"
Interactable::Widget GetWorldWidget(const Internal::World& World);
Interactable::Widget GetWorldWidget(std::int32_t WorldID);
};
/** @} */
#endif // LOGOUT_HPP_INCLUDED