Skip to content

Commit 88c631d

Browse files
committed
Removed line breaks in @onready connects
Formatting will format it :)
1 parent 7adf554 commit 88c631d

File tree

7 files changed

+8
-16
lines changed

7 files changed

+8
-16
lines changed

addons/behaviour_toolkit/behaviour_tree/bt_composite.gd

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ class_name BTComposite extends BTBehaviour
99

1010
# Connecting signal using @onready to omit the need to use super() call
1111
# 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)
1413

1514

1615
## The leaves under the composite node.

addons/behaviour_toolkit/behaviour_tree/bt_decorator.gd

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ class_name BTDecorator extends BTBehaviour
1010

1111
# Connecting signal using @onready to omit the need to use super() call
1212
# 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)
1514

1615
## The leaf the decorator is decorating.
1716
@onready var leaf: BTBehaviour = _get_leaf()

addons/behaviour_toolkit/behaviour_tree/bt_root.gd

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@ var current_status: BTBehaviour.BTStatus
4141

4242
# Connecting signal using @onready to omit the need to use super() call
4343
# 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)
4645

4746
@onready var entry_point: BTBehaviour = get_entry_point()
4847

addons/behaviour_toolkit/behaviour_tree/composites/bt_integrated_fsm.gd

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@ var _default_status: BTStatus = BTStatus.FAILURE
3131

3232
# Connecting signal using @onready to omit the need to use super() call
3333
# 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)
3635

3736
@onready var state_machine: FiniteStateMachine = _get_machine()
3837

addons/behaviour_toolkit/finite_state_machine/fsm.gd

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,7 @@ var current_bt_status: BTBehaviour.BTStatus
6969

7070
# Connecting signal using @onready to omit the need to use super() call
7171
# 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)
7473

7574

7675
func _validate_property(property: Dictionary) -> void:

addons/behaviour_toolkit/finite_state_machine/fsm_state.gd

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,8 @@ var transitions: Array[FSMTransition] = []
1010

1111
# Connecting signal using @onready to omit the need to use super() call
1212
# 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)
1715

1816

1917
## Executes after the state is entered.

addons/behaviour_toolkit/finite_state_machine/fsm_state_integrated_bt.gd

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ class_name FSMStateIntegratedBT extends FSMState
2424

2525
# Connecting signal using @onready to omit the need to use super() call
2626
# 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)
2928

3029
@onready var behaviour_tree: BTRoot = _get_behaviour_tree()
3130

0 commit comments

Comments
 (0)