-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Return success if no file coverage target has been set
Also add a child to test _ready() on autoload nodes with children
- Loading branch information
1 parent
68cf02e
commit 8cae469
Showing
3 changed files
with
11 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
extends Node | ||
|
||
# I don't think we can fix the case where the _init() has any required arguments | ||
# your code will have to allow these to be (re)initialized with no arguments | ||
func _init(parent: Node = null): | ||
var ready := false | ||
|
||
func _init(parent: Node): | ||
if parent: | ||
parent.add_child(self) | ||
|
||
func _ready(): | ||
ready = true | ||
|
||
func fmt(value: String): | ||
return "OtherNode(%s)" % [value] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters