mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 13:06:59 -04:00
rebase (#1)
* 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:
@@ -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);
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -40,6 +40,7 @@
|
||||
#include <vector>
|
||||
#include <map>
|
||||
#include <set>
|
||||
#include <unordered_map>
|
||||
using namespace std;
|
||||
|
||||
#undef RGB
|
||||
|
||||
Reference in New Issue
Block a user