using namespace std;
using namespace Msp;
-Category::Category(const string &n):
- name(n),
+Category::Category():
condition(0),
order(0)
{ }
+Category::Category(const string &n, unsigned o):
+ name(n),
+ condition(0),
+ order(o)
+{ }
+
Category::Category(const Category &other):
name(other.name),
condition(other.condition ? other.condition->clone() : 0),
add_range<LinkedSocketsCondition>("linked_sockets");
add_range<SocketsCondition>("sockets");
add("or", &Loader::or_);
- add("order", &Category::order);
add_range<QualityCondition>("quality");
add_range<RarityCondition>("rarity");
add_range<WidthCondition>("width");
Appearance appearance;
public:
- Category(const std::string & = std::string());
+ Category();
+ Category(const std::string &, unsigned);
Category(const Category &);
Category &operator=(const Category &);
~Category();
void PoeFilter::Loader::category(const string &name)
{
- Category cat(name);
+ Category cat(name, obj.categories.size());
load_sub(cat, obj);
obj.categories[name] = cat;
}