Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement BTInstance - runtime instance of BehaviorTree #181

Merged
merged 11 commits into from
Aug 4, 2024

Conversation

limbonaut
Copy link
Owner

@limbonaut limbonaut commented Aug 3, 2024

This PR aims to consolidate runtime BT instance state management in BTInstance. This should also allow custom player node implementations to properly utilize LimboAI debugger (see BTInstance.register_with_debugger()).

⚡ BREAKING COMPATIBILITY

Make sure to adjust your API calls if you're using any of the following:

  • BehaviorTreeView & BehaviorTreeData -- API changed, check docs
  • BTPlayer.behavior_tree_finished -- signal is deprecated, use updated signal instead
  • BehaviorTree.instantiate() -- parameters and return type changed
  • BTPlayer.get_tree_instance() -- removed, use get_bt_instance() instead
  • BTPlayer.get_last_status() -- removed, use BTPlayer.get_bt_instance().get_last_status() instead
  • BTState.get_tree_instance() -- removed, use get_bt_instance() instead

@limbonaut limbonaut added the breaking-compatibility Implementing this issue would break compatibility with the current minor versions. label Aug 3, 2024
@limbonaut limbonaut marked this pull request as ready for review August 3, 2024 12:04
@limbonaut limbonaut merged commit d2ba904 into master Aug 4, 2024
16 checks passed
@limbonaut limbonaut deleted the bt-instance branch August 4, 2024 08:15
@limbonaut limbonaut added this to the 1.2 milestone Aug 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking-compatibility Implementing this issue would break compatibility with the current minor versions. enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant