]> git.tdb.fi Git - poefilter.git/blobdiff - source/rangecondition.h
Add support for map tier condition
[poefilter.git] / source / rangecondition.h
index 811a1aa48ffba85371d04249ef0ce0eef0f4cb36..7d85125b6dae6392be187bf4932bf14b54f57867 100644 (file)
@@ -72,6 +72,17 @@ struct DropLevelTraits
 typedef RangeCondition<DropLevelTraits> DropLevelCondition;
 
 
+struct MapTierTraits
+{
+       typedef unsigned Type;
+       static unsigned get_min() { return 1; }
+       static unsigned get_max() { return 17; }
+       static const char *get_keyword() { return "MapTier"; }
+};
+
+typedef RangeCondition<MapTierTraits> MapTierCondition;
+
+
 struct WidthTraits
 {
        typedef unsigned Type;