- Grunt login ported end to end (SRP6 challenge/proof, version checksum, realm list) and tested against a live server: authenticates, connects to the world server (auth session with proof-of-work, header crypt), receives the character list and shows character select - Glue: realm list UI, character select (list, models, scripts), character create screen + name generator, delete/rename/decline, Enter World up to the loading screen; loading screen drawing and progress - AccountData (times, update, upload/download), BannedAddOns, addon scan and addon info, client cache version, tutorial flags - Shutdown path at login state: world/map/liquid/weather teardown, NetClient, ComSat, streaming stop; Logitech LCD no-device path in Ui/UILCD/Windows - PCRE 5.0 vendored (core stock; chartables and the posix layer from 12340), ValidateName - Fixes: TSGrowableArray::CalcChunkSize clamps to >= 8 (crash on char list), CWorldScene liquid renderer allocation, CMapFootprintTexture element ctor, pointer render states on x64, CFrustum/CWFrustum layout, M2 draw callback arguments, 37 class/struct forward-declaration mismatches - IDB name sync (1217 names), verify aliases, harness large-element instantiation Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
126 lines
3.7 KiB
C++
126 lines
3.7 KiB
C++
#ifndef WOW_SOURCE_LOADINGSCREEN_H
|
|
#define WOW_SOURCE_LOADINGSCREEN_H
|
|
|
|
#include <cstddef>
|
|
#include <cstdint>
|
|
#include "Engine/Source/Storm/H/stpl.h"
|
|
#include "Engine/Source/Tempest/C2Vector.h"
|
|
#include "Engine/Source/Tempest/C3Vector.h"
|
|
#include "Engine/Source/Tempest/CImVector.h"
|
|
#include "Engine/Source/Tempest/CRect.h"
|
|
#include "WoW/Source/DB/WowClientDB.h"
|
|
|
|
struct BackgroundImage {
|
|
/* 0000 */ const char* m_path;
|
|
/* 0004 */ bool m_fill;
|
|
/* 0008 */ float m_x;
|
|
/* 000C */ float m_y;
|
|
/* 0010 */ float m_width;
|
|
/* 0014 */ float m_height;
|
|
};
|
|
|
|
struct DYNAMICELEMENTVERT {
|
|
/* 0000 */ C3Vector m_position;
|
|
/* 000C */ C2Vector m_texCoord;
|
|
/* 0014 */ CImVector m_color;
|
|
};
|
|
|
|
template <class T>
|
|
class CLoadingScreenShipInfo {
|
|
public:
|
|
struct LOADINGSCREENTAXIPATHINFO {
|
|
/* 0000 */ int32_t m_startNodeID;
|
|
/* 0004 */ int32_t m_endNodeID;
|
|
|
|
LOADINGSCREENTAXIPATHINFO();
|
|
};
|
|
|
|
struct PATHINFO {
|
|
/* 0000 */ TSGrowableArray<uint32_t> m_legs;
|
|
};
|
|
|
|
/* 0000 */ TSGrowableArray<PATHINFO> m_paths;
|
|
/* 0010 */ TSGrowableArray<LOADINGSCREENTAXIPATHINFO> m_legs;
|
|
|
|
void Initialize(WowClientDB<T>* nodeDB, uint32_t pathCount);
|
|
};
|
|
|
|
bool IsStillLoading();
|
|
void LoadingScreenAsyncCallback(float progress);
|
|
bool LoadingScreenDrawing();
|
|
void LoadingScreenEnable(int32_t mapID, bool loadingWorld);
|
|
void LoadingScreenInitialize();
|
|
void LoadingScreenMiniDisable();
|
|
void LoadingScreenMiniEnable();
|
|
void LoadingScreenMiniUpdate(float progress);
|
|
void LoadingScreenSetScreenTipForRaceData(bool show);
|
|
void LoadingScreenSetTip(const char* tip);
|
|
void LoadingScreenSetTransparent(bool transparent);
|
|
void LoadingScreenShutdown();
|
|
void LoadingScreenSpellUpdateProgress(float progress);
|
|
void LoadingScreenWorldCallback(float progress);
|
|
void LoadingScreenXMLCallback(float progress);
|
|
void PaintDynamicLoadingBar();
|
|
|
|
// INLINED
|
|
template <class T>
|
|
CLoadingScreenShipInfo<T>::LOADINGSCREENTAXIPATHINFO::LOADINGSCREENTAXIPATHINFO() {
|
|
this->m_startNodeID = 0;
|
|
this->m_endNodeID = 0;
|
|
}
|
|
|
|
// VERIFY: dd3ee301 manual
|
|
// OFFSET: 0x0040B0B0
|
|
template <class T>
|
|
void CLoadingScreenShipInfo<T>::Initialize(WowClientDB<T>* nodeDB, uint32_t pathCount) {
|
|
this->m_paths.SetCount(pathCount);
|
|
|
|
T* prev = nullptr;
|
|
int32_t startNodeID = 0;
|
|
int32_t endNodeID = 0;
|
|
|
|
for (int32_t i = 0; i < nodeDB->m_numRecords; i++) {
|
|
T* node = i >= 0 && i < nodeDB->m_numRecords ? &nodeDB->m_records[i] : nullptr;
|
|
|
|
if (!prev || prev->m_pathID != node->m_pathID) {
|
|
if (prev && startNodeID > 0) {
|
|
this->m_paths[prev->m_pathID].m_legs.New(this->m_legs.Count());
|
|
|
|
LOADINGSCREENTAXIPATHINFO* info = this->m_legs.New();
|
|
info->m_endNodeID = endNodeID;
|
|
info->m_startNodeID = startNodeID;
|
|
}
|
|
|
|
startNodeID = 0;
|
|
}
|
|
|
|
if (node->m_flags & 1) {
|
|
this->m_paths[node->m_pathID].m_legs.New(this->m_legs.Count());
|
|
|
|
LOADINGSCREENTAXIPATHINFO* info = this->m_legs.New();
|
|
info->m_startNodeID = startNodeID;
|
|
info->m_endNodeID = endNodeID;
|
|
|
|
startNodeID = 0;
|
|
} else if (prev && prev->m_pathID == node->m_pathID && prev->m_continentID != node->m_continentID) {
|
|
this->m_paths[prev->m_pathID].m_legs.New(this->m_legs.Count());
|
|
|
|
LOADINGSCREENTAXIPATHINFO* info = this->m_legs.New();
|
|
info->m_endNodeID = endNodeID;
|
|
info->m_startNodeID = startNodeID;
|
|
|
|
startNodeID = 0;
|
|
} else if (node->m_flags & 2) {
|
|
endNodeID = node->m_id;
|
|
|
|
if (!startNodeID) {
|
|
startNodeID = node->m_id;
|
|
}
|
|
}
|
|
|
|
prev = node;
|
|
}
|
|
}
|
|
|
|
#endif
|