limboai/doc_classes/BTSubtree.xml

19 lines
1.0 KiB
XML

<?xml version="1.0" encoding="UTF-8" ?>
<class name="BTSubtree" inherits="BTNewScope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../doc/class.xsd">
<brief_description>
BT decorator that instantiates and runs a subtree within the larger tree.
</brief_description>
<description>
BTSubtree instantiates a [BehaviorTree] and includes its root task as a child during initialization, while also creating a new [Blackboard] scope.
Returns the status of the subtree's execution.
Note: BTSubTree is designed as a simpler loader, and does not support updating `subtree` at runtime. A custom subtree decorator is better suited and somewhat trivial to implement (https://github.com/limbonaut/limboai/issues/94#issuecomment-2068833610).
</description>
<tutorials>
</tutorials>
<members>
<member name="subtree" type="BehaviorTree" setter="set_subtree" getter="get_subtree">
A [BehaviorTree] resource that will be instantiated as a subtree.
</member>
</members>
</class>