2024-12-16 19:05:24 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
#include <cstdint>
|
2024-12-21 23:07:23 +00:00
|
|
|
#include "Rule.hpp"
|
2024-12-16 19:05:24 +01:00
|
|
|
|
|
|
|
|
class CLayerRule {
|
|
|
|
|
public:
|
|
|
|
|
CLayerRule(const std::string& rule, const std::string& targetNS);
|
|
|
|
|
|
|
|
|
|
enum eRuleType : uint8_t {
|
|
|
|
|
RULE_INVALID = 0,
|
|
|
|
|
RULE_NOANIM,
|
|
|
|
|
RULE_BLUR,
|
|
|
|
|
RULE_BLURPOPUPS,
|
|
|
|
|
RULE_DIMAROUND,
|
2025-04-25 16:38:31 +02:00
|
|
|
RULE_ABOVELOCK,
|
2024-12-16 19:05:24 +01:00
|
|
|
RULE_IGNOREALPHA,
|
|
|
|
|
RULE_IGNOREZERO,
|
|
|
|
|
RULE_XRAY,
|
|
|
|
|
RULE_ANIMATION,
|
|
|
|
|
RULE_ORDER,
|
|
|
|
|
RULE_ZUMBA,
|
|
|
|
|
};
|
|
|
|
|
|
2025-04-24 20:49:49 +02:00
|
|
|
eRuleType m_ruleType = RULE_INVALID;
|
2024-12-21 19:21:45 +00:00
|
|
|
|
2025-04-24 20:49:49 +02:00
|
|
|
const std::string m_targetNamespace;
|
|
|
|
|
const std::string m_rule;
|
2024-12-16 19:05:24 +01:00
|
|
|
|
2025-04-24 20:49:49 +02:00
|
|
|
CRuleRegexContainer m_targetNamespaceRegex;
|
2025-04-25 16:38:31 +02:00
|
|
|
};
|