1
0

feat: move all print work into main file in BMapInspector

This commit is contained in:
2026-01-31 23:38:26 +08:00
parent c664eaba0e
commit def46d1b8f
6 changed files with 111 additions and 67 deletions

View File

@@ -10,6 +10,20 @@
namespace BMapInspector::Ruleset {
class RuleContext {
public:
RuleContext();
~RuleContext();
YYCC_DELETE_COPY(RuleContext)
YYCC_DECL_MOVE(RuleContext)
public:
LibCmo::CK2::CKContext *GetCKContext();
private:
LibCmo::CK2::CKContext *m_Ctx;
};
class IRule {
public:
IRule();
@@ -18,7 +32,7 @@ namespace BMapInspector::Ruleset {
public:
virtual std::u8string_view GetRuleName() const = 0;
virtual void Check(Reporter& reporter) const = 0;
virtual void Check(Reporter::Reporter& reporter, RuleContext& ctx) const = 0;
};
class RuleCollection {