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

Allow specifying agent in BTPlayer node via inspector #102

Merged
merged 8 commits into from
May 12, 2024

Conversation

limbonaut
Copy link
Owner

@limbonaut limbonaut commented May 1, 2024

Implements #62

Compatibility breaking

BBParam.get_value() call now expects scene root node instead of an agent

Since agents were required to be at the root of their scene file, it shouldn't break anything.
But from now on, BBParam subtypes should be used like this:
var my_value = param.get_value(scene_root, blackboard)

BehaviorTree.instantiate and BTTask.initialize API changed

Most users are probably not using these methods. If you implemented your own node that manages some behavior tree instance, you'll need to fix these calls.

…initialization, and add `scene_root` property to `BTTask`

`scene_root` is useful to resolve exported NodePath properties in `BTTask` instances (and for BBNode parameters).
@limbonaut limbonaut added the enhancement New feature or request label May 1, 2024
@limbonaut limbonaut marked this pull request as ready for review May 2, 2024 12:34
@limbonaut limbonaut marked this pull request as draft May 2, 2024 12:35
@limbonaut limbonaut marked this pull request as ready for review May 12, 2024 15:13
@limbonaut limbonaut merged commit ba467ad into master May 12, 2024
18 checks passed
@limbonaut limbonaut deleted the btplayer-agent-property branch May 12, 2024 15:29
@limbonaut limbonaut added the breaking-compatibility Implementing this issue would break compatibility with the current minor versions. label Jun 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