save-state-1

This commit is contained in:
2023-04-12 16:05:22 -07:00
parent ff65bd12a5
commit 247b8c760a
23 changed files with 1480 additions and 150 deletions

View File

@@ -1,10 +1,26 @@
#include "Abilities.h"
#include <string>
#include <iostream>
namespace SBF {
using std::wstring;
const wstring& GetAbilityLabel(int abilityGroupId, int abilityId) {
// template<typename T>
// T r(int a, int b) {
// auto s = [](int a, int b){return (T)nullptr;}
// auto t = wstring(L"asdf");
// return s(a,b);
// }
void testMe() {
auto l = [](int a, int b){return;};
l(1,2);
// std::cout << "l: " << l(1,2) << std::endl;
// auto q = r<void>(1, 2);
// std::cout << "q: " << q(1,2) << std::endl;
}
const wstring GetAbilityLabel(int abilityGroupId, int abilityId) {
switch (abilityGroupId) {
case kAbilityTalentsId:
return kTalents[abilityId];
@@ -12,7 +28,7 @@ namespace SBF {
return kSkills[abilityId];
case kAbilityKnowledgesId:
return kKnowledges[abilityId];
}
return L"";
};
return wstring() + L"";
}
} // End namespace SBF