mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-04-14 08:23:52 +00:00
refactor: promote 7 more static const arrays to constexpr
inventory_screen: groups, tiers, leftSlots, rightSlots, weaponSlots character_create_screen: kAllRaces, kAllClasses
This commit is contained in:
parent
e474dca2be
commit
d2430faa51
2 changed files with 7 additions and 7 deletions
|
|
@ -14,7 +14,7 @@ namespace wowee {
|
|||
namespace ui {
|
||||
|
||||
// Full WotLK race/class lists (used as defaults when no expansion constraints set)
|
||||
static const game::Race kAllRaces[] = {
|
||||
static constexpr game::Race kAllRaces[] = {
|
||||
// Alliance
|
||||
game::Race::HUMAN, game::Race::DWARF, game::Race::NIGHT_ELF,
|
||||
game::Race::GNOME, game::Race::DRAENEI,
|
||||
|
|
@ -25,7 +25,7 @@ static const game::Race kAllRaces[] = {
|
|||
static constexpr int kAllRaceCount = 10;
|
||||
static constexpr int kAllianceCount = 5;
|
||||
|
||||
static const game::Class kAllClasses[] = {
|
||||
static constexpr game::Class kAllClasses[] = {
|
||||
game::Class::WARRIOR, game::Class::PALADIN, game::Class::HUNTER,
|
||||
game::Class::ROGUE, game::Class::PRIEST, game::Class::DEATH_KNIGHT,
|
||||
game::Class::SHAMAN, game::Class::MAGE, game::Class::WARLOCK,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue