mecha10-behavior-runtime 0.9.0

Behavior tree runtime for Mecha10 - unified AI and logic composition system
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Generate JSON Schema for BehaviorConfig
//!
//! This example generates a JSON Schema file for the BehaviorConfig type.

#![allow(
    clippy::print_stdout,
    reason = "example demonstrates usage by printing its output to the terminal, by design"
)]

use mecha10_behavior_runtime::BehaviorConfig;

fn main() -> anyhow::Result<()> {
    let schema = BehaviorConfig::generate_schema()?;
    println!("{}", schema);
    Ok(())
}