2023-02-11 23:35:53 -06:00
|
|
|
#ifndef GLUE_C_REALM_LIST_HPP
|
|
|
|
|
#define GLUE_C_REALM_LIST_HPP
|
|
|
|
|
|
2023-02-14 23:23:09 -06:00
|
|
|
#include <cstdint>
|
|
|
|
|
#include <storm/Array.hpp>
|
|
|
|
|
|
|
|
|
|
class Cfg_CategoriesRec;
|
|
|
|
|
|
|
|
|
|
struct RealmCategory {
|
|
|
|
|
Cfg_CategoriesRec* m_category;
|
|
|
|
|
TSGrowableArray<uint32_t> m_realms;
|
|
|
|
|
uint32_t uint14;
|
|
|
|
|
};
|
|
|
|
|
|
2023-02-11 23:35:53 -06:00
|
|
|
class CRealmList {
|
|
|
|
|
public:
|
2023-02-14 23:23:09 -06:00
|
|
|
// Static variables
|
2023-02-15 08:48:37 -06:00
|
|
|
static float s_avgLoad;
|
2023-02-14 23:23:09 -06:00
|
|
|
static TSFixedArray<RealmCategory*> s_categories;
|
2023-02-15 08:48:37 -06:00
|
|
|
static int32_t s_preferredCategory;
|
|
|
|
|
static int32_t s_selectedCategory;
|
2023-02-14 23:23:09 -06:00
|
|
|
|
2023-02-11 23:35:53 -06:00
|
|
|
// Static functions
|
2023-02-14 23:23:09 -06:00
|
|
|
static void Initialize();
|
2023-02-11 23:35:53 -06:00
|
|
|
static void UpdateList();
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif
|