mecha10-cli 0.1.47

Mecha10 CLI tool
Documentation
//! Behavior component definitions
//!
//! Catalog of available behavior tree components.

use super::{CargoDependency, Component, ComponentCatalog, ComponentType, Mecha10Config};

/// Add all behavior components to the catalog
pub fn add_behaviors(catalog: &mut ComponentCatalog) {
    // Idle Wander Behavior
    catalog.insert(Component {
        id: "idle-wander".to_string(),
        name: "Idle Wander".to_string(),
        description: "Basic wandering behavior with random direction changes".to_string(),
        component_type: ComponentType::Behavior,
        version: "0.1.0".to_string(),
        category: "autonomous".to_string(),
        tags: vec!["wander".to_string(), "autonomous".to_string()],
        cargo_dependencies: vec![CargoDependency {
            name: "mecha10-behavior-runtime".to_string(),
            version: None,
            path: Some("../../packages/behavior-runtime".to_string()),
            features: vec![],
            optional: false,
        }],
        files: vec![],
        mecha10_config: Mecha10Config {
            driver: None,
            custom_node: None,
            behavior: Some("idle_wander".to_string()),
        },
    });

    // Patrol Simple Behavior
    catalog.insert(Component {
        id: "patrol-simple".to_string(),
        name: "Simple Patrol".to_string(),
        description: "Square patrol pattern using timed movements".to_string(),
        component_type: ComponentType::Behavior,
        version: "0.1.0".to_string(),
        category: "navigation".to_string(),
        tags: vec!["patrol".to_string(), "waypoints".to_string(), "autonomous".to_string()],
        cargo_dependencies: vec![CargoDependency {
            name: "mecha10-behavior-runtime".to_string(),
            version: None,
            path: Some("../../packages/behavior-runtime".to_string()),
            features: vec![],
            optional: false,
        }],
        files: vec![],
        mecha10_config: Mecha10Config {
            driver: None,
            custom_node: None,
            behavior: Some("patrol_simple".to_string()),
        },
    });
}