Files
StorytellersBestFriend/sbf-cpp/Archetypes.cpp
Tom Hicks 1f45248ccd Removes unknown values from fill functions.
Indexes will no longer match Ids.
Updated all tests to use char* argv[] instead of char** argv.
2023-04-22 00:38:48 -07:00

21 lines
457 B
C++

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