1
0
Files
libcmo21/Ballance/BMapInspector/Ruleset.cpp

54 lines
941 B
C++
Raw Normal View History

2026-01-30 20:23:39 +08:00
#include "Ruleset.hpp"
namespace BMapInspector::Ruleset {
#pragma region Rule Context
RuleContext::RuleContext() : m_Ctx(nullptr) {}
RuleContext::~RuleContext() {}
LibCmo::CK2::CKContext* RuleContext::GetCKContext() {
return this->m_Ctx;
}
YYCC_IMPL_MOVE_CTOR(RuleContext, rhs) : m_Ctx(rhs.m_Ctx) {
rhs.m_Ctx = nullptr;
}
YYCC_IMPL_MOVE_OPER(RuleContext, rhs) {
this->m_Ctx = rhs.m_Ctx;
rhs.m_Ctx = nullptr;
return *this;
}
#pragma endregion
2026-01-30 20:23:39 +08:00
#pragma region IRule
IRule::IRule() {}
IRule::~IRule() {}
#pragma endregion
#pragma region Rule Collection
RuleCollection::RuleCollection() : rules() {
// TODO: create instance for each rules.
}
RuleCollection::~RuleCollection() {}
2026-01-30 20:40:21 +08:00
size_t RuleCollection::GetRuleCount() const {
return this->rules.size();
}
2026-01-30 20:23:39 +08:00
const std::vector<IRule*>& RuleCollection::GetRules() const {
return this->rules;
}
#pragma endregion
} // namespace BMapInspector::Ruleset