Refactors constants out of Backgrounds.h.

This commit is contained in:
2023-04-25 12:46:39 -07:00
parent 34678d9af6
commit 279c5d0893
3 changed files with 26 additions and 24 deletions

View File

@@ -9,6 +9,30 @@ using std::string;
using std::vector;
} // End namespace
const std::string kBackgroundAlliesLabel = "Allies";
const std::string kBackgroundContactsLabel = "Contacts";
const std::string kBackgroundFameLabel = "Fame";
const std::string kBackgroundGenerationLabel = "Generation";
const std::string kBackgroundHerdLabel = "Herd";
const std::string kBackgroundInfluenceLabel = "Influence";
const std::string kBackgroundMentorLabel = "Mentor";
const std::string kBackgroundResourcesLabel = "Resources";
const std::string kBackgroundRetainersLabel = "Retainers";
const std::string kBackgroundStatusLabel = "Status";
const std::string kBackgroundLabels[] = {
"",
kBackgroundAlliesLabel,
kBackgroundContactsLabel,
kBackgroundFameLabel,
kBackgroundGenerationLabel,
kBackgroundHerdLabel,
kBackgroundInfluenceLabel,
kBackgroundMentorLabel,
kBackgroundResourcesLabel,
kBackgroundRetainersLabel,
kBackgroundStatusLabel,
};
string GetBackgroundLabel(int backgroundId) {
if (backgroundId > 0 && backgroundId <= kBackgroundsCount) {
return kBackgroundLabels[backgroundId];