mirror of
https://github.com/whoahq/whoa.git
synced 2026-11-23 06:17:19 +03:00
feat(glue): implement CCharacterSelection::RenderPrep
This commit is contained in:
3 files changed
+16
-1
No files matched your search
@@ -16,3 +16,7 @@ void CCharacterComponent::Init(ComponentData* data, const char* a3) {
|
|||||||
|
|
||||||
// TODO
|
// TODO
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void CCharacterComponent::RenderPrep(int32_t a2) {
|
||||||
|
// TODO
|
||||||
|
}
|
||||||
@@ -29,6 +29,7 @@ class CCharacterComponent {
|
|||||||
|
|
||||||
// Member functions
|
// Member functions
|
||||||
void Init(ComponentData* data, const char* a3);
|
void Init(ComponentData* data, const char* a3);
|
||||||
|
void RenderPrep(int32_t a2);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
@@ -79,7 +79,17 @@ void CCharacterSelection::OnGetCharacterList() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void CCharacterSelection::RenderPrep() {
|
void CCharacterSelection::RenderPrep() {
|
||||||
// TODO
|
auto character = CCharacterSelection::GetSelectedCharacter();
|
||||||
|
if (!character) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
auto component = character->component;
|
||||||
|
if (!component) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
component->RenderPrep(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CCharacterSelection::SetBackgroundModel(const char* modelPath) {
|
void CCharacterSelection::SetBackgroundModel(const char* modelPath) {
|
||||||
|
|||||||
Reference in new issue
Block a user