51 [](
const ValidationIssue &issue) { return issue.severity == Severity::ERROR; });
56 [](
const ValidationIssue &issue) { return issue.severity == Severity::WARNING; });
61 [](
const ValidationIssue &issue) { return issue.severity == Severity::ERROR; });
66 [](
const ValidationIssue &issue) { return issue.severity == Severity::WARNING; });
110 bool HasCycles(
const Node *node, std::vector<const Node *> &visited)
const;
ValidationResult Validate(const BehaviorTree *tree) const
Validate a behavior tree against the parser profile.
EmberCore::String BuildNodePath(const EmberCore::String &parent_path, const Node *node) const
void ValidateTreeStructure(const BehaviorTree *tree, ValidationResult &result) const
static ValidationResult ValidateWithConfig(const BehaviorTree *tree, const ParserConfig &config)
Validate a behavior tree with profile override.
void ValidateNodeType(const Node *node, ValidationResult &result, const EmberCore::String &path) const
bool HasCycles(const Node *node, std::vector< const Node * > &visited) const
void ValidateNodeAttributes(const Node *node, ValidationResult &result, const EmberCore::String &path) const
void ValidateNode(const Node *node, ValidationResult &result, std::vector< const Node * > &visited, const EmberCore::String &path) const
void ValidateBlackboards(const BehaviorTree *tree, ValidationResult &result) const
void ValidateChildCount(const Node *node, ValidationResult &result, const EmberCore::String &path) const
Represents a complete behavior tree data structure.
Represents a node in a behavior tree structure.
Configuration for XML parser behavior and element/attribute mappings.
Main types header for EmberCore.
std::string String
Framework-agnostic string type.
ValidationIssue(Severity sev, const EmberCore::String &msg, const EmberCore::String &path="")
EmberCore::String node_path
EmberCore::String message
size_t WarningCount() const
void AddError(const EmberCore::String &message, const EmberCore::String &node_path="")
size_t ErrorCount() const
std::vector< ValidationIssue > issues
void AddWarning(const EmberCore::String &message, const EmberCore::String &node_path="")