mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 00:02:45 +03:00
feat(component): add CCharacterComponent::GetSectionsRecord
This commit is contained in:
parent
a694ba173b
commit
eb40e5ff01
@ -63,6 +63,18 @@ void CCharacterComponent::GeosRenderPrep() {
|
||||
this->m_flags &= ~0x4;
|
||||
}
|
||||
|
||||
CharSectionsRec* CCharacterComponent::GetSectionsRecord(COMPONENT_VARIATIONS sectionIndex, int32_t variationIndex, int32_t colorIndex, bool* found) {
|
||||
return ComponentGetSectionsRecord(
|
||||
CCharacterComponent::s_chrVarArray,
|
||||
this->m_data.raceID,
|
||||
this->m_data.sexID,
|
||||
sectionIndex,
|
||||
variationIndex,
|
||||
colorIndex,
|
||||
found
|
||||
);
|
||||
}
|
||||
|
||||
void CCharacterComponent::Init(ComponentData* data, const char* a3) {
|
||||
if (data->model) {
|
||||
data->model->Release();
|
||||
|
||||
@ -5,6 +5,7 @@
|
||||
#include "gx/Texture.hpp"
|
||||
#include <cstdint>
|
||||
|
||||
class CharSectionsRec;
|
||||
class CM2Model;
|
||||
|
||||
struct st_race;
|
||||
@ -65,6 +66,7 @@ class CCharacterComponent {
|
||||
// Member functions
|
||||
void CreateBaseTexture();
|
||||
void GeosRenderPrep();
|
||||
CharSectionsRec* GetSectionsRecord(COMPONENT_VARIATIONS sectionIndex, int32_t variationIndex, int32_t colorIndex, bool* found);
|
||||
void Init(ComponentData* data, const char* a3);
|
||||
int32_t ItemsLoaded(int32_t a2);
|
||||
void PrepSections();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user