mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 00:02:45 +03:00
feat(glue): add CGlueMgr::InitializeFFX
This commit is contained in:
parent
43b01a8178
commit
1eb97f5bb3
@ -4,9 +4,10 @@
|
|||||||
#include "client/Util.hpp"
|
#include "client/Util.hpp"
|
||||||
#include "console/CVar.hpp"
|
#include "console/CVar.hpp"
|
||||||
#include "db/Db.hpp"
|
#include "db/Db.hpp"
|
||||||
|
#include "ffx/Effect.hpp"
|
||||||
#include "glue/CCharacterSelection.hpp"
|
#include "glue/CCharacterSelection.hpp"
|
||||||
#include "glue/Character.hpp"
|
|
||||||
#include "glue/CRealmList.hpp"
|
#include "glue/CRealmList.hpp"
|
||||||
|
#include "glue/Character.hpp"
|
||||||
#include "glue/GlueScript.hpp"
|
#include "glue/GlueScript.hpp"
|
||||||
#include "glue/Types.hpp"
|
#include "glue/Types.hpp"
|
||||||
#include "gx/Coordinate.hpp"
|
#include "gx/Coordinate.hpp"
|
||||||
@ -59,8 +60,11 @@ bool CGlueMgr::m_authenticated;
|
|||||||
const CharacterSelectionDisplay* CGlueMgr::m_characterInfo;
|
const CharacterSelectionDisplay* CGlueMgr::m_characterInfo;
|
||||||
int32_t CGlueMgr::m_clientKickReason;
|
int32_t CGlueMgr::m_clientKickReason;
|
||||||
char CGlueMgr::m_currentScreen[64];
|
char CGlueMgr::m_currentScreen[64];
|
||||||
|
EffectDeath* CGlueMgr::m_deathEffect;
|
||||||
int32_t CGlueMgr::m_disconnectPending;
|
int32_t CGlueMgr::m_disconnectPending;
|
||||||
int32_t CGlueMgr::m_displayingQueueDialog;
|
int32_t CGlueMgr::m_displayingQueueDialog;
|
||||||
|
int32_t CGlueMgr::m_ffxActive;
|
||||||
|
EffectGlow* CGlueMgr::m_glowEffect;
|
||||||
CGlueMgr::GLUE_IDLE_STATE CGlueMgr::m_idleState;
|
CGlueMgr::GLUE_IDLE_STATE CGlueMgr::m_idleState;
|
||||||
int32_t CGlueMgr::m_initialized;
|
int32_t CGlueMgr::m_initialized;
|
||||||
int32_t CGlueMgr::m_lastLoginResult;
|
int32_t CGlueMgr::m_lastLoginResult;
|
||||||
@ -444,6 +448,19 @@ void CGlueMgr::Initialize() {
|
|||||||
// AccountDataInitializeBasicSystem();
|
// AccountDataInitializeBasicSystem();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void CGlueMgr::InitializeFFX() {
|
||||||
|
if (CGlueMgr::m_ffxActive) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
CGlueMgr::m_ffxActive = 1;
|
||||||
|
|
||||||
|
// TODO FFX::Init();
|
||||||
|
|
||||||
|
CGlueMgr::m_deathEffect = STORM_NEW(EffectDeath);
|
||||||
|
CGlueMgr::m_glowEffect = STORM_NEW(EffectGlow);
|
||||||
|
}
|
||||||
|
|
||||||
void CGlueMgr::LoginServerLogin(const char* accountName, const char* password) {
|
void CGlueMgr::LoginServerLogin(const char* accountName, const char* password) {
|
||||||
if (!CGlueMgr::m_scandllOkayToLogIn || !CGlueMgr::m_acceptedTOS || !CGlueMgr::m_acceptedEULA || CGlueMgr::m_idleState != IDLE_NONE) {
|
if (!CGlueMgr::m_scandllOkayToLogIn || !CGlueMgr::m_acceptedTOS || !CGlueMgr::m_acceptedEULA || CGlueMgr::m_idleState != IDLE_NONE) {
|
||||||
return;
|
return;
|
||||||
@ -990,8 +1007,7 @@ void CGlueMgr::Resume() {
|
|||||||
|
|
||||||
FrameScript_SignalEvent(22, nullptr);
|
FrameScript_SignalEvent(22, nullptr);
|
||||||
|
|
||||||
// TODO
|
CGlueMgr::InitializeFFX();
|
||||||
// CGlueMgr::InitializeFFX();
|
|
||||||
|
|
||||||
// TODO
|
// TODO
|
||||||
// ClientServices::SetMessageHandler(SMSG_CHARACTER_RENAME_RESULT, CGlueMgr::OnCharRenameResult, 0);
|
// ClientServices::SetMessageHandler(SMSG_CHARACTER_RENAME_RESULT, CGlueMgr::OnCharRenameResult, 0);
|
||||||
|
|||||||
@ -7,6 +7,8 @@
|
|||||||
|
|
||||||
class CDataStore;
|
class CDataStore;
|
||||||
class CSimpleTop;
|
class CSimpleTop;
|
||||||
|
class EffectDeath;
|
||||||
|
class EffectGlow;
|
||||||
struct CharacterSelectionDisplay;
|
struct CharacterSelectionDisplay;
|
||||||
|
|
||||||
class CGlueMgr {
|
class CGlueMgr {
|
||||||
@ -40,8 +42,11 @@ class CGlueMgr {
|
|||||||
static const CharacterSelectionDisplay* m_characterInfo;
|
static const CharacterSelectionDisplay* m_characterInfo;
|
||||||
static int32_t m_clientKickReason;
|
static int32_t m_clientKickReason;
|
||||||
static char m_currentScreen[];
|
static char m_currentScreen[];
|
||||||
|
static EffectDeath* m_deathEffect;
|
||||||
static int32_t m_disconnectPending;
|
static int32_t m_disconnectPending;
|
||||||
static int32_t m_displayingQueueDialog;
|
static int32_t m_displayingQueueDialog;
|
||||||
|
static int32_t m_ffxActive;
|
||||||
|
static EffectGlow* m_glowEffect;
|
||||||
static GLUE_IDLE_STATE m_idleState;
|
static GLUE_IDLE_STATE m_idleState;
|
||||||
static int32_t m_initialized;
|
static int32_t m_initialized;
|
||||||
static int32_t m_lastLoginResult;
|
static int32_t m_lastLoginResult;
|
||||||
@ -69,6 +74,7 @@ class CGlueMgr {
|
|||||||
static int32_t HandleDisplaySizeChanged(const CSizeEvent& event);
|
static int32_t HandleDisplaySizeChanged(const CSizeEvent& event);
|
||||||
static int32_t Idle(const void* a1, void* a2); // TODO a1: const EVENT_DATA_IDLE*
|
static int32_t Idle(const void* a1, void* a2); // TODO a1: const EVENT_DATA_IDLE*
|
||||||
static void Initialize();
|
static void Initialize();
|
||||||
|
static void InitializeFFX();
|
||||||
static void LoginServerLogin(const char* accountName, const char* password);
|
static void LoginServerLogin(const char* accountName, const char* password);
|
||||||
static int32_t NetDisconnectHandler(const void* a1, void* a2);
|
static int32_t NetDisconnectHandler(const void* a1, void* a2);
|
||||||
static int32_t OnKickReasonMsg(void* param, NETMESSAGE msgId, uint32_t time, CDataStore* msg);
|
static int32_t OnKickReasonMsg(void* param, NETMESSAGE msgId, uint32_t time, CDataStore* msg);
|
||||||
|
|||||||
@ -16,6 +16,7 @@ target_link_libraries(glue
|
|||||||
console
|
console
|
||||||
db
|
db
|
||||||
event
|
event
|
||||||
|
ffx
|
||||||
gx
|
gx
|
||||||
model
|
model
|
||||||
net
|
net
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user