Connect autoload signals only outside the editor (#149) #150
No reviewers
Labels
No labels
assets
bug
duplicate
enhancement
help wanted
invalid
question
testing
ui
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
liamjd/UntitledColonyBuilder!150
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "149-game-gd-editor-signals"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #149
Moves the
GameState.building_placed/building_removedandGameClock.tickconnections incommon/game.gdinside the existingif not Engine.is_editor_hint():guard.game.gdis@tool, and in the editor the autoloads are bareNodes with no signals. The firstconnecttherefore errored, and stopped_ready(), every time the editor openedgame.tscn.Verification
--headless --editor --quit: no script errors (was 1).game.tscn,GameState.building_placed,building_removedandGameClock.tickare all still connected to their handlers.Note
Branched from
origin/mainand independent of #148. The two touch nearby lines ofgame.gd, so whichever merges second may need a trivial rebase.🤖 Generated with Claude Code