Compare commits
No commits in common. "672f92c87b6d4cfc983aeaecc4e332d815fab588" and "0982804a86d97da71eef252da59a2bdb63bc176a" have entirely different histories.
672f92c87b
...
0982804a86
|
@ -10,7 +10,6 @@
|
|||
*/
|
||||
|
||||
#include "blackboard.h"
|
||||
#include "../util/limbo_compat.h"
|
||||
|
||||
#ifdef LIMBOAI_MODULE
|
||||
#include "core/variant/variant.h"
|
||||
|
@ -76,26 +75,6 @@ TypedArray<StringName> Blackboard::list_vars() const {
|
|||
return var_names;
|
||||
}
|
||||
|
||||
void Blackboard::print_state() const {
|
||||
Ref<Blackboard> bb{ this };
|
||||
int scope_idx = 0;
|
||||
while (bb.is_valid()) {
|
||||
int i = 0;
|
||||
String line = "Scope " + itos(scope_idx) + ": { ";
|
||||
for (const KeyValue<StringName, BBVariable> &kv : bb->data) {
|
||||
if (i > 0) {
|
||||
line += ", ";
|
||||
}
|
||||
line += String(kv.key) + ": " + String(kv.value.get_value());
|
||||
i++;
|
||||
}
|
||||
line += " }";
|
||||
PRINT_LINE(line);
|
||||
bb = bb->get_parent();
|
||||
scope_idx++;
|
||||
}
|
||||
}
|
||||
|
||||
Dictionary Blackboard::get_vars_as_dict() const {
|
||||
Dictionary dict;
|
||||
for (const KeyValue<StringName, BBVariable> &kv : data) {
|
||||
|
@ -157,7 +136,6 @@ void Blackboard::_bind_methods() {
|
|||
ClassDB::bind_method(D_METHOD("erase_var", "var_name"), &Blackboard::erase_var);
|
||||
ClassDB::bind_method(D_METHOD("clear"), &Blackboard::clear);
|
||||
ClassDB::bind_method(D_METHOD("list_vars"), &Blackboard::list_vars);
|
||||
ClassDB::bind_method(D_METHOD("print_state"), &Blackboard::print_state);
|
||||
ClassDB::bind_method(D_METHOD("get_vars_as_dict"), &Blackboard::get_vars_as_dict);
|
||||
ClassDB::bind_method(D_METHOD("populate_from_dict", "dictionary"), &Blackboard::populate_from_dict);
|
||||
ClassDB::bind_method(D_METHOD("top"), &Blackboard::top);
|
||||
|
|
|
@ -57,7 +57,6 @@ public:
|
|||
void erase_var(const StringName &p_name);
|
||||
void clear() { data.clear(); }
|
||||
TypedArray<StringName> list_vars() const;
|
||||
void print_state() const;
|
||||
|
||||
Dictionary get_vars_as_dict() const;
|
||||
void populate_from_dict(const Dictionary &p_dictionary);
|
||||
|
|
|
@ -54,8 +54,6 @@ Methods
|
|||
+---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| |void| | :ref:`populate_from_dict<class_Blackboard_method_populate_from_dict>`\ (\ dictionary\: ``Dictionary``\ ) |
|
||||
+---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| |void| | :ref:`print_state<class_Blackboard_method_print_state>`\ (\ ) |const| |
|
||||
+---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| |void| | :ref:`set_parent<class_Blackboard_method_set_parent>`\ (\ blackboard\: :ref:`Blackboard<class_Blackboard>`\ ) |
|
||||
+---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| |void| | :ref:`set_var<class_Blackboard_method_set_var>`\ (\ var_name\: ``StringName``, value\: ``Variant``\ ) |
|
||||
|
@ -196,18 +194,6 @@ Fills the Blackboard with multiple variables from a dictionary. The dictionary k
|
|||
|
||||
----
|
||||
|
||||
.. _class_Blackboard_method_print_state:
|
||||
|
||||
.. rst-class:: classref-method
|
||||
|
||||
|void| **print_state**\ (\ ) |const| :ref:`🔗<class_Blackboard_method_print_state>`
|
||||
|
||||
Prints the values of all variables in each scope.
|
||||
|
||||
.. rst-class:: classref-item-separator
|
||||
|
||||
----
|
||||
|
||||
.. _class_Blackboard_method_set_parent:
|
||||
|
||||
.. rst-class:: classref-method
|
||||
|
|
|
@ -86,12 +86,6 @@
|
|||
Fills the Blackboard with multiple variables from a dictionary. The dictionary keys must be variable names and the dictionary values must be variable values. Keys must be StringName or String.
|
||||
</description>
|
||||
</method>
|
||||
<method name="print_state" qualifiers="const">
|
||||
<return type="void" />
|
||||
<description>
|
||||
Prints the values of all variables in each scope.
|
||||
</description>
|
||||
</method>
|
||||
<method name="set_parent">
|
||||
<return type="void" />
|
||||
<param index="0" name="blackboard" type="Blackboard" />
|
||||
|
|
|
@ -4,7 +4,7 @@ major = 1
|
|||
minor = 3
|
||||
patch = 0
|
||||
status = "dev"
|
||||
doc_branch = "latest"
|
||||
doc_branch = "master"
|
||||
godot_cpp_ref = "godot-4.3-stable"
|
||||
|
||||
# Code that generates version header
|
||||
|
|
|
@ -575,7 +575,7 @@ inline void _open_online_doc_page(const String &p_page) {
|
|||
}
|
||||
|
||||
void LimboUtility::open_doc_introduction() {
|
||||
_open_online_doc_page("behavior-trees/introduction.html");
|
||||
_open_online_doc_page("getting-started/introduction.html");
|
||||
}
|
||||
|
||||
void LimboUtility::open_doc_online() {
|
||||
|
@ -583,11 +583,11 @@ void LimboUtility::open_doc_online() {
|
|||
}
|
||||
|
||||
void LimboUtility::open_doc_gdextension_limitations() {
|
||||
_open_online_doc_page("getting-started/getting-limboai.html#get-gdextension-version");
|
||||
_open_online_doc_page("getting-started/gdextension.html#limitations-of-the-gdextension-version");
|
||||
}
|
||||
|
||||
void LimboUtility::open_doc_custom_tasks() {
|
||||
_open_online_doc_page("behavior-trees/custom-tasks.html");
|
||||
_open_online_doc_page("getting-started/custom-tasks.html");
|
||||
}
|
||||
|
||||
void LimboUtility::open_doc_class(const String &p_class_name) {
|
||||
|
|
Loading…
Reference in New Issue