* Include unordered_map (fixes #104)

* Make templates localizable (Closes #100)

* Check/uncheck all selected cards in export window (Closes #93)

Co-authored-by: Twan van Laarhoven <twanvl@gmail.com>
This commit is contained in:
Carl Miller, Jr
2021-02-15 02:18:50 -05:00
committed by GitHub
parent cb3766ea82
commit 3a243f23e6
26 changed files with 183 additions and 72 deletions
+1
View File
@@ -56,6 +56,7 @@ public:
template <typename T> void handle(const Scriptable<T>& );
template <typename T> void handle(const vector<T>& c) { value = to_script(&c); }
template <typename K, typename V> void handle(const map<K,V>& c) { value = to_script(&c); }
template <typename K, typename V> void handle(const unordered_map<K,V>& c) { value = to_script(&c); }
template <typename K, typename V> void handle(const IndexMap<K,V>& c) { value = to_script(&c); }
template <typename K, typename V> void handle(const DelayedIndexMaps<K,V>&) {}
template <typename K, typename V> void handle(const DelayedIndexMapsData<K,V>& c);
+2
View File
@@ -49,9 +49,11 @@ String identity(const String&);
String tr(LocaleCategory cat, const String& key, DefaultLocaleFun def = warn_and_identity);
/// Translate 'key' in the for a Package using the current locale
[[deprecated]]
String tr(const Package&, const String& key, DefaultLocaleFun def);
/// Translate 'key' in the for a Package using the current locale
[[deprecated]]
String tr(const Package&, const String& subcat, const String& key, DefaultLocaleFun def);
/// A localized string for menus
+1
View File
@@ -40,6 +40,7 @@
#include <vector>
#include <map>
#include <set>
#include <unordered_map>
using namespace std;
#undef RGB