Implements CGSpendVirtuePoints.
This commit is contained in:
@@ -4,19 +4,28 @@
|
||||
#include <vector>
|
||||
|
||||
namespace SBF {
|
||||
namespace {
|
||||
using std::string;
|
||||
using std::vector;
|
||||
} // End namespace
|
||||
|
||||
const std::string GetVirtueLabel(int id) {
|
||||
const string GetVirtueLabel(int id) {
|
||||
if (id > 0 && id <= kVirtuesCount) {
|
||||
return kVirtueLabels[id];
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
void FillVirtueLabels(std::vector<std::string>& labels) {
|
||||
void FillVirtueLabels(vector<string>& labels) {
|
||||
labels.clear();
|
||||
for (int id = 1; id <= kVirtuesCount; id++) {
|
||||
labels.push_back(GetVirtueLabel(id));
|
||||
}
|
||||
}
|
||||
|
||||
vector<string> GetVirtueLabels() {
|
||||
vector<string> labels;
|
||||
FillVirtueLabels(labels);
|
||||
return labels;
|
||||
}
|
||||
} // End namespace SBF
|
||||
|
||||
Reference in New Issue
Block a user