mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-12 11:12:29 +00:00
67 lines
1.9 KiB
C++
67 lines
1.9 KiB
C++
|
|
#ifndef GLUE_C_GLUE_MGR_HPP
|
||
|
|
#define GLUE_C_GLUE_MGR_HPP
|
||
|
|
|
||
|
|
#include "event/Event.hpp"
|
||
|
|
#include <cstdint>
|
||
|
|
|
||
|
|
class CSimpleTop;
|
||
|
|
|
||
|
|
class CGlueMgr {
|
||
|
|
public:
|
||
|
|
// Types
|
||
|
|
enum GLUE_IDLE_STATE {
|
||
|
|
IDLE_NONE = 0,
|
||
|
|
IDLE_ACCOUNT_LOGIN = 1,
|
||
|
|
IDLE_2 = 2,
|
||
|
|
IDLE_3 = 3,
|
||
|
|
IDLE_4 = 4,
|
||
|
|
IDLE_5 = 5,
|
||
|
|
IDLE_6 = 6,
|
||
|
|
IDLE_7 = 7,
|
||
|
|
IDLE_8 = 8,
|
||
|
|
IDLE_9 = 9,
|
||
|
|
IDLE_10 = 10,
|
||
|
|
IDLE_11 = 11,
|
||
|
|
IDLE_12 = 12,
|
||
|
|
IDLE_13 = 13
|
||
|
|
};
|
||
|
|
|
||
|
|
// Static variables
|
||
|
|
static int32_t m_acceptedEULA;
|
||
|
|
static int32_t m_acceptedTerminationWithoutNotice;
|
||
|
|
static int32_t m_acceptedTOS;
|
||
|
|
static char m_accountName[];
|
||
|
|
static float m_aspect;
|
||
|
|
static bool m_authenticated;
|
||
|
|
static char m_currentScreen[];
|
||
|
|
static GLUE_IDLE_STATE m_idleState;
|
||
|
|
static int32_t m_initialized;
|
||
|
|
static int32_t m_lastLoginResult;
|
||
|
|
static int32_t m_lastLoginState;
|
||
|
|
static int32_t m_loginResult;
|
||
|
|
static int32_t m_loginState;
|
||
|
|
static int32_t m_matrixRemaining;
|
||
|
|
static int32_t m_reload;
|
||
|
|
static int32_t m_scandllOkayToLogIn;
|
||
|
|
static float m_screenHeight;
|
||
|
|
static float m_screenWidth;
|
||
|
|
static int32_t m_showedDisconnect;
|
||
|
|
static CSimpleTop* m_simpleTop;
|
||
|
|
static int32_t m_suspended;
|
||
|
|
|
||
|
|
// Static functions
|
||
|
|
// TODO a1: const EVENT_DATA_IDLE*
|
||
|
|
static int32_t HandleDisplaySizeChanged(const CSizeEvent& event);
|
||
|
|
static int32_t Idle(const void*, void*);
|
||
|
|
static void Initialize();
|
||
|
|
static void LoginServerLogin(const char* accountName, const char* password);
|
||
|
|
static void QuitGame();
|
||
|
|
static void Resume();
|
||
|
|
static void SetScreen(const char*);
|
||
|
|
static void StatusDialogClick();
|
||
|
|
static void Suspend();
|
||
|
|
static void UpdateCurrentScreen(const char* screen);
|
||
|
|
};
|
||
|
|
|
||
|
|
#endif
|