From a22102b83bf33add0f242948f348ff5445bb2479 Mon Sep 17 00:00:00 2001 From: David Delassus Date: Wed, 10 Jan 2024 13:26:05 +0100 Subject: [PATCH] :memo: add notice about goap blackboard_type requirements --- README.md | 2 ++ include/aitoolkit/goap.hpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/README.md b/README.md index 27274ed..2e826fe 100644 --- a/README.md +++ b/README.md @@ -256,6 +256,8 @@ struct blackboard_type { }; ``` +> **NB:** The blackboard needs to be comparable (`a == b`) and hashable. + Next, create a class for each action that you want to be able to perform: ```cpp diff --git a/include/aitoolkit/goap.hpp b/include/aitoolkit/goap.hpp index 628a747..10049bd 100644 --- a/include/aitoolkit/goap.hpp +++ b/include/aitoolkit/goap.hpp @@ -50,6 +50,8 @@ struct blackboard_type { }; ``` +> **NB:** The blackboard needs to be comparable (`a == b`) and hashable. + Next, create a class for each action that you want to be able to perform: ```cpp