mirror of
https://github.com/whoahq/whoa.git
synced 2026-11-07 07:09:53 +03:00
feat(glue): add CCharacterSelection::GetCharacterDisplay
This commit is contained in:
2 files changed
+9
No files matched your search
@@ -50,6 +50,14 @@ void CCharacterSelection::EnumerateCharactersCallback(const CHARACTER_INFO& info
|
||||
// TODO
|
||||
}
|
||||
|
||||
const CharacterSelectionDisplay* CCharacterSelection::GetCharacterDisplay(int32_t index) {
|
||||
if (index < 0 || index >= CCharacterSelection::s_characterList.Count()) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
return &CCharacterSelection::s_characterList[index];
|
||||
}
|
||||
|
||||
const CharacterSelectionDisplay* CCharacterSelection::GetSelectedCharacter() {
|
||||
if (CCharacterSelection::s_selectionIndex < 0 || CCharacterSelection::s_selectionIndex >= CCharacterSelection::s_characterList.Count()) {
|
||||
return nullptr;
|
||||
|
||||
@@ -33,6 +33,7 @@ class CCharacterSelection {
|
||||
static void ClearCharacterList();
|
||||
static void ClearCharacterModel();
|
||||
static void EnumerateCharactersCallback(const CHARACTER_INFO& info, void* param);
|
||||
static const CharacterSelectionDisplay* GetCharacterDisplay(int32_t index);
|
||||
static const CharacterSelectionDisplay* GetSelectedCharacter();
|
||||
static void OnGetCharacterList();
|
||||
static void RenderPrep();
|
||||
|
||||
Reference in new issue
Block a user