Implements clans and tests.

This commit is contained in:
2023-04-15 23:25:00 -07:00
parent 670c517326
commit 2e937ce02c
3 changed files with 155 additions and 3 deletions

View File

@@ -0,0 +1,19 @@
#include "Clans.h"
#include <string>
#include <vector>
namespace SBF {
std::string GetClanLabel(int clanId) {
if (clanId > 0 && clanId <= kClansCount) {
return kClanLabels[clanId];
}
return "";
}
void FillClanLabels(std::vector<std::string>& labels) {
labels.clear();
for (int id = 1; id <= kClansCount; id++) {
labels.push_back(GetClanLabel(id));
}
}
} // End namespace SBF