Commit Graph

759 Commits

Author SHA1 Message Date
Serhii Snitsaruk f4ceb27b35 Demo: Hide code popup upon Showcase scene load 2024-03-08 14:27:23 +01:00
Serhii Snitsaruk fda6fd5b8f
Merge pull request #69 from dpalais/root_parent_scope
Set parent scope in state initialization
2024-03-07 20:34:07 +01:00
Serhii Snitsaruk b90b85f0c3
Merge pull request #68 from Rubonnek/fix-btview-update-crash
Fix `BehaviorTreeView::update_tree` null data crash
2024-03-07 20:32:58 +01:00
Serhii Snitsaruk e182a56f7e
Merge pull request #67 from Rubonnek/expose-btview-clear
Expose `BehaviorTreeView::clear` to GDScript
2024-03-07 20:32:15 +01:00
Dave Palais 653bf13a7d Set parent scope in state initialization 2024-03-07 14:00:27 -05:00
Wilson E. Alvarez dd837ff472
Fix BehaviorTreeView::update_tree null data crash 2024-03-07 11:50:34 -05:00
Wilson E. Alvarez 3f34e4dde2
Expose BehaviorTreeView::clear to GDScript 2024-03-07 11:39:53 -05:00
Serhii Snitsaruk 41dafe642a Doc: Add a demonstration GIF to the README 2024-03-07 15:17:02 +01:00
Serhii Snitsaruk 25c72302ca
Merge pull request #66 from limbonaut/prefetching
Prefetching rework
2024-03-06 22:33:09 +01:00
Serhii Snitsaruk 81f49be6b4 Doc: Update class docs 2024-03-06 21:50:35 +01:00
Serhii Snitsaruk 2658060b1c Move prefetching code into `BlackboardPlan` and add checkbox to the plan editor 2024-03-06 21:28:06 +01:00
Serhii Snitsaruk f452552ecd
Merge pull request #65 from limbonaut/previous-state
Provide the previous state in the state_changed signal
2024-03-05 13:16:26 +01:00
Serhii Snitsaruk 193743e782 Provide the previous state in the state_changed signal
- Also provide `get_previous_active_state()` method.
- Rename state_changed -> active_state_changed.
2024-03-05 12:58:55 +01:00
Serhii Snitsaruk 27f3982250
Merge pull request #63 from limbonaut/refactor-ditch-p
Remove "p_" from the argument names in the `ClassDB` bindings
2024-03-04 21:54:01 +01:00
Serhii Snitsaruk 4c26583007 Remove "p_" from the argument names in the `ClassDB` bindings 2024-03-04 21:36:16 +01:00
Serhii Snitsaruk ae718ab00c
Merge pull request #61 from limbonaut/refactor-use-stringname
Refactor: Use `StringName` for variables and event names
2024-03-04 19:01:42 +01:00
Serhii Snitsaruk bea25049a0 Update plan editor utilizing `StringName` 2024-03-04 18:06:59 +01:00
Serhii Snitsaruk 0bd52d9b18 Demo: Update BTs & tasks to use `StringName` for variables
Also move tutorial BTs into trees/.
2024-03-04 18:06:41 +01:00
Serhii Snitsaruk d66f1e83fd Refactor BlackboardPlan to use StringName
Also update demo BTs.
2024-03-04 16:56:57 +01:00
Serhii Snitsaruk 923587e6e2 Doc: Update examples to use `StringName` 2024-03-04 16:27:35 +01:00
Serhii Snitsaruk ecf1e4b65f Doc: Update class docs 2024-03-04 16:19:39 +01:00
Serhii Snitsaruk 7cf4a4b3b8 Fix setter/getter types in BBVariable 2024-03-04 16:19:39 +01:00
Serhii Snitsaruk 88df78c4a2 Refactor HSM to use StringName for events 2024-03-04 16:19:35 +01:00
Serhii Snitsaruk 84aeb4bfff Adjust BB variable property editor to expect `StringName` 2024-03-04 15:09:15 +01:00
Serhii Snitsaruk 350c27abbc Change BB variable members to StringName 2024-03-04 12:54:45 +01:00
Serhii Snitsaruk b7d1bc11ab Blackboard: Use `StringName` for variable names 2024-03-03 23:38:52 +01:00
Serhii Snitsaruk e1bddb5d02 Doc: Fix README shields 2024-03-03 21:00:32 +01:00
Serhii Snitsaruk 507da30f04 Improve README 2024-03-03 20:53:27 +01:00
Serhii Snitsaruk 6b376e5e9a
Merge pull request #56 from dpalais/changes
Change some includes to use relative paths
2024-03-03 00:32:11 +01:00
Dave Palais 73aa636271 Change some includes to use relative paths
The paths before assumed we were inside the Godot modules folder.
This change enables building as an external module.
2024-03-02 18:10:00 -05:00
Serhii Snitsaruk f5d21e2669 Fix BTState not honoring API virtual methods 2024-03-02 20:19:38 +01:00
Serhii Snitsaruk c96e2019af Doc: Explain blackboard scopes 2024-03-02 16:17:40 +01:00
Serhii Snitsaruk bb6fab7555 API: Expose BlackboardPlan factory methods 2024-03-02 16:06:32 +01:00
Serhii Snitsaruk c4931ae420 Fix Blackboard.{set,get}_parent_scope should be {set,get}_parent in the API 2024-03-02 15:43:55 +01:00
Serhii Snitsaruk ba462c9526 Doc: Add copy button to the right of codeblocks 2024-03-02 13:15:17 +01:00
Serhii Snitsaruk e260498776 Doc: Explain parameters 2024-03-02 12:49:00 +01:00
Serhii Snitsaruk 6f9ff6a487 Doc: Update LimboState class doc 2024-03-02 00:10:44 +01:00
Serhii Snitsaruk aab38c9fb9 Doc: Rearrange pages 2024-03-02 00:06:34 +01:00
Serhii Snitsaruk 6d877c800a Doc: Add "State Machines" page.
Also update rst class docs.
2024-03-01 23:44:29 +01:00
Serhii Snitsaruk 543f2bb32c
Merge pull request #55 from limbonaut/hsm-dispatch-improvement
Allow `LimboState::dispatch` to be called from inside the hierarchy.
2024-03-01 11:56:38 +01:00
Serhii Snitsaruk eaeb57e2d7 Allow `LimboState::dispatch` to be called from inside the hierarchy.
Improves usability and removes requirement to call this method on the root state (see #49).
2024-03-01 11:02:32 +01:00
Serhii Snitsaruk 1aa64f8c5d
Merge pull request #54 from limbonaut/demo-show-code
Demo: Display source code when custom task is selected in BehaviorTreeView
2024-03-01 10:40:32 +01:00
Serhii Snitsaruk 24730a9213 Demo: Display custom task source code upon selection in BehaviorTreeView 2024-02-29 23:42:32 +01:00
Serhii Snitsaruk 7626c84633 New `task_selected` signal for BehaviorTreeView 2024-02-29 23:42:24 +01:00
Serhii Snitsaruk 2d98a38ada Fix "Manage" button is sometimes shown for derived plans 2024-02-29 15:45:59 +01:00
Serhii Snitsaruk c7a4988e6c
Merge pull request #52 from limbonaut/fix-hsm-update-crash
Fix crashing on HSM update with state transition
2024-02-26 22:29:09 +01:00
Serhii Snitsaruk 1c01767a56 Fix crashing on HSM update with state transition 2024-02-26 21:34:30 +01:00
Serhii Snitsaruk 9fbbea49a9 Fix exported demo builds breaking
Demo still requires tool builds - keeping release libs lean.
2024-02-19 11:02:28 +01:00
Serhii Snitsaruk 01d643831c Fix: Web GDExtension target lacks manifest entries and debug build 2024-02-18 22:55:42 +01:00
Serhii Snitsaruk 9d99e8bf9f Doc: Update README and setup_gdextension.sh 2024-02-18 22:51:59 +01:00