feat(component): add CCharacterComponent::Initialize

This commit is contained in:
fallenoak 2025-10-15 22:46:09 -05:00
parent 23fb30c2fd
commit 8b9b943ed8
No known key found for this signature in database
GPG Key ID: 7628F8E61AEA070D
3 changed files with 16 additions and 1 deletions

View File

@ -2,6 +2,7 @@
#include "async/AsyncFile.hpp" #include "async/AsyncFile.hpp"
#include "client/ClientHandlers.hpp" #include "client/ClientHandlers.hpp"
#include "client/ClientServices.hpp" #include "client/ClientServices.hpp"
#include "component/CCharacterComponent.hpp"
#include "console/CVar.hpp" #include "console/CVar.hpp"
#include "console/Device.hpp" #include "console/Device.hpp"
#include "console/Initialize.hpp" #include "console/Initialize.hpp"
@ -439,7 +440,8 @@ void WowClientInit() {
// TODO // TODO
// sub_6F75E0(); // sub_6F75E0();
// sub_401FF0();
CCharacterComponent::Initialize();
ClientServices::Initialize(); ClientServices::Initialize();
// TODO ClientServices::SetMessageHandler(SMSG_TUTORIAL_FLAGS, (int)sub_530920, 0); // TODO ClientServices::SetMessageHandler(SMSG_TUTORIAL_FLAGS, (int)sub_530920, 0);

View File

@ -9,6 +9,17 @@ CCharacterComponent* CCharacterComponent::AllocComponent() {
return STORM_NEW(CCharacterComponent); return STORM_NEW(CCharacterComponent);
} }
void CCharacterComponent::Initialize() {
// TODO
// TODO proper implementation
CCharacterComponent::Initialize(GxTex_Rgb565, 9, 0, 0);
}
void CCharacterComponent::Initialize(EGxTexFormat textureFormat, uint32_t textureLevel, int32_t thread, int32_t compress) {
// TODO
}
void CCharacterComponent::CreateBaseTexture() { void CCharacterComponent::CreateBaseTexture() {
// TODO // TODO
} }

View File

@ -47,6 +47,8 @@ class CCharacterComponent {
public: public:
// Static functions // Static functions
static CCharacterComponent* AllocComponent(); static CCharacterComponent* AllocComponent();
static void Initialize();
static void Initialize(EGxTexFormat textureFormat, uint32_t textureLevel, int32_t thread, int32_t compress);
// Member variables // Member variables
uint32_t m_flags = 0x1 | 0x2 | 0x4; uint32_t m_flags = 0x1 | 0x2 | 0x4;