mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 08:12:44 +03:00
feat(component): add ComponentGetFacialHairStyleRecord
This commit is contained in:
parent
0c584ee901
commit
cbe12747b8
@ -129,6 +129,18 @@ int32_t BuildComponentArray(uint32_t varArrayLength, st_race** varArrayPtr) {
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CharacterFacialHairStylesRec* ComponentGetFacialHairStyleRecord(ComponentData* data) {
|
||||||
|
for (int32_t i = 0; i < g_characterFacialHairStylesDB.GetNumRecords(); i++) {
|
||||||
|
auto facialHairStyleRec = g_characterFacialHairStylesDB.GetRecordByIndex(i);
|
||||||
|
|
||||||
|
if (facialHairStyleRec->m_raceID == data->raceID && facialHairStyleRec->m_sexID == data->sexID && facialHairStyleRec->m_variationID == data->facialHairStyleID) {
|
||||||
|
return facialHairStyleRec;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
int32_t ComponentGetHairGeoset(ComponentData* data) {
|
int32_t ComponentGetHairGeoset(ComponentData* data) {
|
||||||
for (int32_t i = 0; i < g_charHairGeosetsDB.GetNumRecords(); i++) {
|
for (int32_t i = 0; i < g_charHairGeosetsDB.GetNumRecords(); i++) {
|
||||||
auto hairGeosetRec = g_charHairGeosetsDB.GetRecordByIndex(i);
|
auto hairGeosetRec = g_charHairGeosetsDB.GetRecordByIndex(i);
|
||||||
|
|||||||
@ -4,6 +4,7 @@
|
|||||||
#include "component/Types.hpp"
|
#include "component/Types.hpp"
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
|
|
||||||
|
class CharacterFacialHairStylesRec;
|
||||||
class CharSectionsRec;
|
class CharSectionsRec;
|
||||||
|
|
||||||
struct ComponentData;
|
struct ComponentData;
|
||||||
@ -29,6 +30,8 @@ struct st_variation {
|
|||||||
|
|
||||||
int32_t BuildComponentArray(uint32_t varArrayLength, st_race** varArrayPtr);
|
int32_t BuildComponentArray(uint32_t varArrayLength, st_race** varArrayPtr);
|
||||||
|
|
||||||
|
CharacterFacialHairStylesRec* ComponentGetFacialHairStyleRecord(ComponentData* data);
|
||||||
|
|
||||||
int32_t ComponentGetHairGeoset(ComponentData* data);
|
int32_t ComponentGetHairGeoset(ComponentData* data);
|
||||||
|
|
||||||
int32_t ComponentGetNumColors(st_race* varArray, int32_t raceId, int32_t sexId, COMPONENT_VARIATIONS sectionIndex, int32_t variationIndex);
|
int32_t ComponentGetNumColors(st_race* varArray, int32_t raceId, int32_t sexId, COMPONENT_VARIATIONS sectionIndex, int32_t variationIndex);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user