Files
StorytellersBestFriend/sbf-cpp/Clans.cpp
Tom Hicks 5e57ac277d Configures clang-format and clangd.
Runs clang-format on all c++ files.
2023-04-21 21:57:29 -07:00

21 lines
399 B
C++

#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