Fix Blackboard.{set,get}_parent_scope should be {set,get}_parent in the API
This commit is contained in:
parent
ba462c9526
commit
c4931ae420
|
@ -96,8 +96,8 @@ void Blackboard::_bind_methods() {
|
|||
ClassDB::bind_method(D_METHOD("get_var", "p_name", "p_default", "p_complain"), &Blackboard::get_var, Variant(), true);
|
||||
ClassDB::bind_method(D_METHOD("set_var", "p_name", "p_value"), &Blackboard::set_var);
|
||||
ClassDB::bind_method(D_METHOD("has_var", "p_name"), &Blackboard::has_var);
|
||||
ClassDB::bind_method(D_METHOD("set_parent_scope", "p_blackboard"), &Blackboard::set_parent);
|
||||
ClassDB::bind_method(D_METHOD("get_parent_scope"), &Blackboard::get_parent);
|
||||
ClassDB::bind_method(D_METHOD("set_parent", "p_blackboard"), &Blackboard::set_parent);
|
||||
ClassDB::bind_method(D_METHOD("get_parent"), &Blackboard::get_parent);
|
||||
ClassDB::bind_method(D_METHOD("erase_var", "p_name"), &Blackboard::erase_var);
|
||||
ClassDB::bind_method(D_METHOD("prefetch_nodepath_vars", "p_node"), &Blackboard::prefetch_nodepath_vars);
|
||||
ClassDB::bind_method(D_METHOD("top"), &Blackboard::top);
|
||||
|
|
|
@ -38,7 +38,7 @@ Methods
|
|||
+-------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| void | :ref:`erase_var<class_Blackboard_method_erase_var>` **(** String p_name **)** |
|
||||
+-------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`Blackboard<class_Blackboard>` | :ref:`get_parent_scope<class_Blackboard_method_get_parent_scope>` **(** **)** |const| |
|
||||
| :ref:`Blackboard<class_Blackboard>` | :ref:`get_parent<class_Blackboard_method_get_parent>` **(** **)** |const| |
|
||||
+-------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| Variant | :ref:`get_var<class_Blackboard_method_get_var>` **(** String p_name, Variant p_default=null, bool p_complain=true **)** |const| |
|
||||
+-------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
|
@ -46,7 +46,7 @@ Methods
|
|||
+-------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| void | :ref:`prefetch_nodepath_vars<class_Blackboard_method_prefetch_nodepath_vars>` **(** Node p_node **)** |
|
||||
+-------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| void | :ref:`set_parent_scope<class_Blackboard_method_set_parent_scope>` **(** :ref:`Blackboard<class_Blackboard>` p_blackboard **)** |
|
||||
| void | :ref:`set_parent<class_Blackboard_method_set_parent>` **(** :ref:`Blackboard<class_Blackboard>` p_blackboard **)** |
|
||||
+-------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| void | :ref:`set_var<class_Blackboard_method_set_var>` **(** String p_name, Variant p_value **)** |
|
||||
+-------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
|
@ -88,11 +88,11 @@ Removes a variable by its name.
|
|||
|
||||
----
|
||||
|
||||
.. _class_Blackboard_method_get_parent_scope:
|
||||
.. _class_Blackboard_method_get_parent:
|
||||
|
||||
.. rst-class:: classref-method
|
||||
|
||||
:ref:`Blackboard<class_Blackboard>` **get_parent_scope** **(** **)** |const|
|
||||
:ref:`Blackboard<class_Blackboard>` **get_parent** **(** **)** |const|
|
||||
|
||||
Returns a Blackboard that serves as the parent scope for this instance.
|
||||
|
||||
|
@ -136,11 +136,11 @@ If ``true``, any ``NodePath`` variables in the **Blackboard** are replaced with
|
|||
|
||||
----
|
||||
|
||||
.. _class_Blackboard_method_set_parent_scope:
|
||||
.. _class_Blackboard_method_set_parent:
|
||||
|
||||
.. rst-class:: classref-method
|
||||
|
||||
void **set_parent_scope** **(** :ref:`Blackboard<class_Blackboard>` p_blackboard **)**
|
||||
void **set_parent** **(** :ref:`Blackboard<class_Blackboard>` p_blackboard **)**
|
||||
|
||||
Assigns the parent scope. If a value isn't in the current Blackboard scope, it will look in the parent scope Blackboard to find it.
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
Removes a variable by its name.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_parent_scope" qualifiers="const">
|
||||
<method name="get_parent" qualifiers="const">
|
||||
<return type="Blackboard" />
|
||||
<description>
|
||||
Returns a Blackboard that serves as the parent scope for this instance.
|
||||
|
@ -56,7 +56,7 @@
|
|||
If [code]true[/code], any [NodePath] variables in the [Blackboard] are replaced with [Node] references when the tree is instantiated. References are retrieved by calling [method Node.get_node] on the agent instance.
|
||||
</description>
|
||||
</method>
|
||||
<method name="set_parent_scope">
|
||||
<method name="set_parent">
|
||||
<return type="void" />
|
||||
<param index="0" name="p_blackboard" type="Blackboard" />
|
||||
<description>
|
||||
|
|
Loading…
Reference in New Issue