Implements Archetypes functions.

Adds tests for them.
This commit is contained in:
2023-04-15 18:46:14 -07:00
parent 3c30150a70
commit ffbcce2d35
3 changed files with 197 additions and 2 deletions

View File

@@ -0,0 +1,20 @@
#include "Archetypes.h"
#include <string>
#include <vector>
namespace SBF {
std::string GetArchetypeLabel(int archetypeId) {
if (archetypeId >= 0 && archetypeId <= kArchetypesCount) {
return kArchetypes[archetypeId];
}
return "";
}
void FillArchetypeLabels(std::vector<std::string>& labels) {
labels.clear();
for (int id = 0; id <= kArchetypesCount; id++) {
labels.push_back(GetArchetypeLabel(id));
}
}
} // End namespace SBF