mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 00:02:45 +03:00
feat(component): add CCharacterComponent::GetPreferences
This commit is contained in:
parent
db53fb07bc
commit
c6110b561e
@ -1048,6 +1048,21 @@ void CCharacterComponent::GeosRenderPrep() {
|
|||||||
this->m_flags &= ~0x4;
|
this->m_flags &= ~0x4;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void CCharacterComponent::GetPreferences(CharacterPreferences* preferences) {
|
||||||
|
if (!preferences) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
preferences->raceID = this->m_data.raceID;
|
||||||
|
preferences->sexID = this->m_data.sexID;
|
||||||
|
preferences->classID = this->m_data.classID;
|
||||||
|
preferences->hairColorID = this->m_data.hairColorID;
|
||||||
|
preferences->skinColorID = this->m_data.skinColorID;
|
||||||
|
preferences->faceID = this->m_data.faceID;
|
||||||
|
preferences->facialHairStyleID = this->m_data.facialHairStyleID;
|
||||||
|
preferences->hairStyleID = this->m_data.hairStyleID;
|
||||||
|
}
|
||||||
|
|
||||||
CharSectionsRec* CCharacterComponent::GetSectionsRecord(COMPONENT_VARIATIONS sectionIndex, int32_t variationIndex, int32_t colorIndex, bool* found) {
|
CharSectionsRec* CCharacterComponent::GetSectionsRecord(COMPONENT_VARIATIONS sectionIndex, int32_t variationIndex, int32_t colorIndex, bool* found) {
|
||||||
return ComponentGetSectionsRecord(
|
return ComponentGetSectionsRecord(
|
||||||
CCharacterComponent::s_chrVarArray,
|
CCharacterComponent::s_chrVarArray,
|
||||||
|
|||||||
@ -87,6 +87,7 @@ class CCharacterComponent {
|
|||||||
void CreateBaseTexture();
|
void CreateBaseTexture();
|
||||||
void* CreateTexture(const ItemDisplayInfoRec* displayRec, int32_t section);
|
void* CreateTexture(const ItemDisplayInfoRec* displayRec, int32_t section);
|
||||||
void GeosRenderPrep();
|
void GeosRenderPrep();
|
||||||
|
void GetPreferences(CharacterPreferences* preferences);
|
||||||
CharSectionsRec* GetSectionsRecord(COMPONENT_VARIATIONS sectionIndex, int32_t variationIndex, int32_t colorIndex, bool* found);
|
CharSectionsRec* GetSectionsRecord(COMPONENT_VARIATIONS sectionIndex, int32_t variationIndex, int32_t colorIndex, bool* found);
|
||||||
int32_t Init(ComponentData* data, const char* a3);
|
int32_t Init(ComponentData* data, const char* a3);
|
||||||
int32_t ItemsLoaded(int32_t a2);
|
int32_t ItemsLoaded(int32_t a2);
|
||||||
|
|||||||
@ -91,6 +91,17 @@ enum ITEM_SLOT {
|
|||||||
NUM_ITEM_SLOT
|
NUM_ITEM_SLOT
|
||||||
};
|
};
|
||||||
|
|
||||||
|
struct CharacterPreferences {
|
||||||
|
int32_t raceID;
|
||||||
|
int32_t sexID;
|
||||||
|
int32_t classID;
|
||||||
|
int32_t hairColorID;
|
||||||
|
int32_t skinColorID;
|
||||||
|
int32_t faceID;
|
||||||
|
int32_t facialHairStyleID;
|
||||||
|
int32_t hairStyleID;
|
||||||
|
};
|
||||||
|
|
||||||
struct ComponentData {
|
struct ComponentData {
|
||||||
int32_t raceID = 0;
|
int32_t raceID = 0;
|
||||||
int32_t sexID = 0;
|
int32_t sexID = 0;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user