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 @@ -12,8 +12,7 @@ class_name BTComposite extends BTBehaviour
12
12
13
13
# Connecting signal using @onready to omit the need to use super() call
14
14
# in _ready() of extended nodes if they override _ready().
15
- @onready var __connect_child_order_changed : int = \
16
- child_order_changed .connect (_on_child_order_changed )
15
+ @onready var __connect_child_order_changed : int = child_order_changed .connect (_on_child_order_changed )
17
16
18
17
19
18
## The leaves under the composite node.
Original file line number Diff line number Diff line change @@ -13,8 +13,7 @@ class_name BTDecorator extends BTBehaviour
13
13
14
14
# Connecting signal using @onready to omit the need to use super() call
15
15
# in _ready() of extended nodes if they override _ready().
16
- @onready var __connect_child_order_changed : int = \
17
- child_order_changed .connect (_on_child_order_changed )
16
+ @onready var __connect_child_order_changed : int = child_order_changed .connect (_on_child_order_changed )
18
17
19
18
## The leaf the decorator is decorating.
20
19
@onready var leaf : BTBehaviour = _get_leaf ()
Original file line number Diff line number Diff line change @@ -44,8 +44,7 @@ var current_status: BTBehaviour.BTStatus
44
44
45
45
# Connecting signal using @onready to omit the need to use super() call
46
46
# in _ready() of extended nodes if they override _ready().
47
- @onready var __connect_child_order_changed : int = \
48
- child_order_changed .connect (_on_child_order_changed )
47
+ @onready var __connect_child_order_changed : int = child_order_changed .connect (_on_child_order_changed )
49
48
50
49
@onready var entry_point : BTBehaviour = get_entry_point ()
51
50
Original file line number Diff line number Diff line change @@ -39,8 +39,7 @@ var _default_status: BTStatus = BTStatus.FAILURE
39
39
40
40
# Connecting signal using @onready to omit the need to use super() call
41
41
# in _ready() of extended nodes if they override _ready().
42
- @onready var __connect_finite_state_machine_changed : int = \
43
- child_order_changed .connect (_finite_state_machine_changed )
42
+ @onready var __connect_finite_state_machine_changed : int = child_order_changed .connect (_finite_state_machine_changed )
44
43
45
44
@onready var state_machine : FiniteStateMachine = _get_machine ()
46
45
Original file line number Diff line number Diff line change @@ -73,8 +73,7 @@ var current_bt_status: BTBehaviour.BTStatus
73
73
74
74
# Connecting signal using @onready to omit the need to use super() call
75
75
# in _ready() of extended nodes if they override _ready().
76
- @onready var __connect_child_order_changed : int = \
77
- child_order_changed .connect (_update_states_list )
76
+ @onready var __connect_child_order_changed : int = child_order_changed .connect (_update_states_list )
78
77
79
78
80
79
func _validate_property (property : Dictionary ) -> void :
Original file line number Diff line number Diff line change @@ -17,10 +17,8 @@ var transitions: Array[FSMTransition] = []
17
17
18
18
# Connecting signal using @onready to omit the need to use super() call
19
19
# in _ready() of extended nodes if they override _ready().
20
- @onready var __connect_update_transitions : int = \
21
- child_order_changed .connect (_update_transitions )
22
- @onready var __connect_update_transition_on_ready : int = \
23
- ready .connect (_update_transitions )
20
+ @onready var __connect_update_transitions : int = child_order_changed .connect (_update_transitions )
21
+ @onready var __connect_update_transition_on_ready : int = ready .connect (_update_transitions )
24
22
25
23
26
24
## Executes after the state is entered.
Original file line number Diff line number Diff line change @@ -32,8 +32,7 @@ class_name FSMStateIntegratedBT extends FSMState
32
32
33
33
# Connecting signal using @onready to omit the need to use super() call
34
34
# in _ready() of extended nodes if they override _ready().
35
- @onready var __connect_child_order_changed : int = \
36
- child_order_changed .connect (_on_child_order_changed )
35
+ @onready var __connect_child_order_changed : int = child_order_changed .connect (_on_child_order_changed )
37
36
38
37
@onready var behaviour_tree : BTRoot = _get_behaviour_tree ()
39
38
You can’t perform that action at this time.
0 commit comments