feat(component): add CCharacterComponent::Initialize

This commit is contained in:
fallenoak committed 2025-10-15 22:46:09 -05:00
1 parent 23fb30c2fd
commit 8b9b943ed8
3 files changed
+16 -1

No files matched your search

+3 -1
View File
@@ -2,6 +2,7 @@
#include "async/AsyncFile.hpp"
#include "client/ClientHandlers.hpp"
#include "client/ClientServices.hpp"
#include "component/CCharacterComponent.hpp"
#include "console/CVar.hpp"
#include "console/Device.hpp"
#include "console/Initialize.hpp"
@@ -439,7 +440,8 @@ void WowClientInit() {
// TODO
// sub_6F75E0();
// sub_401FF0();
CCharacterComponent::Initialize();
ClientServices::Initialize();
// TODO ClientServices::SetMessageHandler(SMSG_TUTORIAL_FLAGS, (int)sub_530920, 0);
+11
View File
@@ -9,6 +9,17 @@ CCharacterComponent* CCharacterComponent::AllocComponent() {
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() {
// TODO
}
+2
View File
@@ -47,6 +47,8 @@ class CCharacterComponent {
public:
// Static functions
static CCharacterComponent* AllocComponent();
static void Initialize();
static void Initialize(EGxTexFormat textureFormat, uint32_t textureLevel, int32_t thread, int32_t compress);
// Member variables
uint32_t m_flags = 0x1 | 0x2 | 0x4;