#pragma once #define WIN32_LEAN_AND_MEAN #include #include #include extern float g_sleepPercentage; extern int g_autosaveInterval; extern bool g_doBoatBreak; #define LAUNCHER_VERSION "0.3" class Windows64Launcher { public: static void CreateLauncherWindow(HINSTANCE hInstance, std::function onLaunch); static void SaveAuthenticationData(const std::string& token, const std::string& refreshToken); static bool GetAuthenticationData(std::string& tokenOut, std::string& refreshTokenOut, bool dedicated = false); static bool GetAuthenticationDataAndLoad(bool dedicated = false); static int API_GetAccountInfo(const std::string token); static int API_AttemptAccountRegister(const std::string username, const std::string password, std::string& tokenOut); static int API_AttemptAccountLogin(const std::string username, const std::string password, std::string& tokenOut); static bool IsInOfflineMode(); static std::vector GetBannedUsersList(); static void SaveBannedUsersList(std::vector bannedUsers); static const std::string& GetAuthenticationToken(); static const std::string& GetUsername(); static void CheckForUpdates(); };