Switch arguments (sms module)
This commit is contained in:
parent
a09009ebe5
commit
7bc282bccd
3 changed files with 3 additions and 2 deletions
1
Test.gd
1
Test.gd
|
@ -23,6 +23,7 @@ extends Node
|
||||||
|
|
||||||
# CORE Configuration
|
# CORE Configuration
|
||||||
var config: CoreConfiguration = CoreConfiguration.new()
|
var config: CoreConfiguration = CoreConfiguration.new()
|
||||||
|
|
||||||
# CORE Object
|
# CORE Object
|
||||||
var core: Core
|
var core: Core
|
||||||
# Logger
|
# Logger
|
||||||
|
|
|
@ -6,7 +6,7 @@ sidebar_position: 7
|
||||||
Handles scenes and their order.
|
Handles scenes and their order.
|
||||||
|
|
||||||
## Functions
|
## Functions
|
||||||
### *bool* <u>add_scene</u>(*String* <u>sname</u>, *CoreTypes.SceneType* <u>type</u>, *Node* <u>sclass</u>)
|
### *bool* <u>add_scene</u>(*String* <u>sname</u>, *Node* <u>sclass</u>, *CoreTypes.SceneType* <u>type</u>)
|
||||||
Adds a scene to some scene collection.
|
Adds a scene to some scene collection.
|
||||||
|
|
||||||
Returns `true` if successful.
|
Returns `true` if successful.
|
||||||
|
|
|
@ -51,7 +51,7 @@ func _pull_config() -> void:
|
||||||
for scene in scenes: remove_scene(scene, true)
|
for scene in scenes: remove_scene(scene, true)
|
||||||
|
|
||||||
# Add a scene to some scene collection
|
# Add a scene to some scene collection
|
||||||
func add_scene(sname: String, type: CoreTypes.SceneType, sclass: Node) -> bool:
|
func add_scene(sname: String, sclass: Node, type: CoreTypes.SceneType) -> bool:
|
||||||
if core.config.headless: return false
|
if core.config.headless: return false
|
||||||
logger.verbf("Sms", "Adding scene \"" + sname + "\" of type " + str(type))
|
logger.verbf("Sms", "Adding scene \"" + sname + "\" of type " + str(type))
|
||||||
if exists(sname) != CoreTypes.SceneType.NONE:
|
if exists(sname) != CoreTypes.SceneType.NONE:
|
||||||
|
|
Loading…
Reference in a new issue