mirror of
https://github.com/whoahq/whoa.git
synced 2026-11-12 17:25:04 +03:00
feat(component): implement CCharacterComponent::VariationsLoaded
This commit is contained in:
3 files changed
+21
-1
No files matched your search
@@ -252,7 +252,19 @@ void CCharacterComponent::SetSkinColor(int32_t skinColorID, bool a3, bool a4, co
|
||||
}
|
||||
|
||||
int32_t CCharacterComponent::VariationsLoaded(int32_t a2) {
|
||||
// TODO
|
||||
TCTEXTUREINFO info;
|
||||
|
||||
for (int32_t v = 0; v < NUM_COMPONENT_VARIATIONS; v++) {
|
||||
for (int32_t t = 0; t < 3; t++) {
|
||||
auto texture = this->m_texture[TEXTURE_INDEX(v, t)];
|
||||
|
||||
if (texture && !TextureCacheGetInfo(texture, info, a2)) {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
this->m_flags &= ~0x2;
|
||||
|
||||
return 1;
|
||||
}
|
||||
@@ -67,3 +67,9 @@ void* TextureCacheCreateTexture(const char* fileName) {
|
||||
void TextureCacheDestroyTexture(void* texture) {
|
||||
// TODO
|
||||
}
|
||||
|
||||
int32_t TextureCacheGetInfo(void* texture, TCTEXTUREINFO& info, int32_t a3) {
|
||||
// TODO
|
||||
|
||||
return 0;
|
||||
}
|
||||
@@ -36,4 +36,6 @@ void* TextureCacheCreateTexture(const char* fileName);
|
||||
|
||||
void TextureCacheDestroyTexture(void* texture);
|
||||
|
||||
int32_t TextureCacheGetInfo(void* texture, TCTEXTUREINFO& info, int32_t a3);
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user