goap-ai 0.2.0

Goal-Oriented Action Planning (GOAP) AI.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use std::collections::HashMap;

use serde::Deserialize;

use crate::{Action, Algorithm, Goal, Solution, State};

#[derive(Debug, Deserialize)]
pub struct Config {
    pub algorithm: Algorithm,
    pub solution: Solution,
    pub max_depth: usize,
    pub state: State,
    pub goals: HashMap<String, Goal>,
    pub actions: HashMap<String, Action>,
}