File tree Expand file tree Collapse file tree 7 files changed +8
-16
lines changed Expand file tree Collapse file tree 7 files changed +8
-16
lines changed Original file line number Diff line number Diff line change @@ -9,8 +9,7 @@ class_name BTComposite extends BTBehaviour
9
9
10
10
# Connecting signal using @onready to omit the need to use super() call
11
11
# in _ready() of extended nodes if they override _ready().
12
- @onready var __connect_child_order_changed : int = \
13
- child_order_changed .connect (_on_child_order_changed )
12
+ @onready var __connect_child_order_changed : int = child_order_changed .connect (_on_child_order_changed )
14
13
15
14
16
15
## The leaves under the composite node.
Original file line number Diff line number Diff line change @@ -10,8 +10,7 @@ class_name BTDecorator extends BTBehaviour
10
10
11
11
# Connecting signal using @onready to omit the need to use super() call
12
12
# in _ready() of extended nodes if they override _ready().
13
- @onready var __connect_child_order_changed : int = \
14
- child_order_changed .connect (_on_child_order_changed )
13
+ @onready var __connect_child_order_changed : int = child_order_changed .connect (_on_child_order_changed )
15
14
16
15
## The leaf the decorator is decorating.
17
16
@onready var leaf : BTBehaviour = _get_leaf ()
Original file line number Diff line number Diff line change @@ -41,8 +41,7 @@ var current_status: BTBehaviour.BTStatus
41
41
42
42
# Connecting signal using @onready to omit the need to use super() call
43
43
# in _ready() of extended nodes if they override _ready().
44
- @onready var __connect_child_order_changed : int = \
45
- child_order_changed .connect (_on_child_order_changed )
44
+ @onready var __connect_child_order_changed : int = child_order_changed .connect (_on_child_order_changed )
46
45
47
46
@onready var entry_point : BTBehaviour = get_entry_point ()
48
47
Original file line number Diff line number Diff line change @@ -31,8 +31,7 @@ var _default_status: BTStatus = BTStatus.FAILURE
31
31
32
32
# Connecting signal using @onready to omit the need to use super() call
33
33
# in _ready() of extended nodes if they override _ready().
34
- @onready var __connect_finite_state_machine_changed : int = \
35
- child_order_changed .connect (_finite_state_machine_changed )
34
+ @onready var __connect_finite_state_machine_changed : int = child_order_changed .connect (_finite_state_machine_changed )
36
35
37
36
@onready var state_machine : FiniteStateMachine = _get_machine ()
38
37
Original file line number Diff line number Diff line change @@ -69,8 +69,7 @@ var current_bt_status: BTBehaviour.BTStatus
69
69
70
70
# Connecting signal using @onready to omit the need to use super() call
71
71
# in _ready() of extended nodes if they override _ready().
72
- @onready var __connect_child_order_changed : int = \
73
- child_order_changed .connect (_update_states_list )
72
+ @onready var __connect_child_order_changed : int = child_order_changed .connect (_update_states_list )
74
73
75
74
76
75
func _validate_property (property : Dictionary ) -> void :
Original file line number Diff line number Diff line change @@ -10,10 +10,8 @@ var transitions: Array[FSMTransition] = []
10
10
11
11
# Connecting signal using @onready to omit the need to use super() call
12
12
# in _ready() of extended nodes if they override _ready().
13
- @onready var __connect_update_transitions : int = \
14
- child_order_changed .connect (_update_transitions )
15
- @onready var __connect_update_transition_on_ready : int = \
16
- ready .connect (_update_transitions )
13
+ @onready var __connect_update_transitions : int = child_order_changed .connect (_update_transitions )
14
+ @onready var __connect_update_transition_on_ready : int = ready .connect (_update_transitions )
17
15
18
16
19
17
## Executes after the state is entered.
Original file line number Diff line number Diff line change @@ -24,8 +24,7 @@ class_name FSMStateIntegratedBT extends FSMState
24
24
25
25
# Connecting signal using @onready to omit the need to use super() call
26
26
# in _ready() of extended nodes if they override _ready().
27
- @onready var __connect_child_order_changed : int = \
28
- child_order_changed .connect (_on_child_order_changed )
27
+ @onready var __connect_child_order_changed : int = child_order_changed .connect (_on_child_order_changed )
29
28
30
29
@onready var behaviour_tree : BTRoot = _get_behaviour_tree ()
31
30
You can’t perform that action at this time.
0 commit comments