Implements backgrounds and tests.

This commit is contained in:
2023-04-15 22:54:04 -07:00
parent 3111b9a8aa
commit 670c517326
3 changed files with 121 additions and 3 deletions

View File

@@ -0,0 +1,19 @@
#include "Backgrounds.h"
#include <string>
#include <vector>
namespace SBF {
std::string GetBackgroundLabel(int backgroundId) {
if (backgroundId > 0 && backgroundId <= kBackgroundsCount) {
return kBackgroundLabels[backgroundId];
}
return "";
}
void FillBackgroundLabels(std::vector<std::string>& labels) {
labels.clear();
for (int id = 1; id <= kBackgroundsCount; id++) {
labels.push_back(kBackgroundLabels[id]);
}
}
} // End namespace SBF