1
0

feat: add detailed rule in BMapInspector

This commit is contained in:
2026-02-02 22:26:41 +08:00
parent ebbea473a4
commit b06bd587f6
15 changed files with 206 additions and 3 deletions

View File

@@ -0,0 +1,19 @@
#include "ChirsRules.hpp"
namespace BMapInspector::Rule {
Chirs1Rule::Chirs1Rule() : IRule() {}
Chirs1Rule::~Chirs1Rule() {}
std::u8string_view Chirs1Rule::GetRuleName() const {
return u8"CHIRS1";
}
void Chirs1Rule::Check(Reporter::Reporter& reporter, Map::Level& ctx) const {
// Report error if there is some material named Laterne_Verlauf
// but its texture is not pointed to Laterne_Verlauf texture.
// Report error if some materials' texture is Laterne_Verlauf,
// but its name is not Laterne_Verlauf.
// Report error if there is multiple Laterne_Verlauf material.
reporter.WriteError(this->GetRuleName(), u8"Fork you!");
}
} // namespace BMapInspector::Rule