Fix custom modules
This commit is contained in:
parent
2b0de4a7b3
commit
cd711fe0bd
2 changed files with 4 additions and 4 deletions
|
@ -244,7 +244,7 @@ func register_custom_module(module_name: String, module_origin: String, module_c
|
||||||
loggeri.diag("Updating variables")
|
loggeri.diag("Updating variables")
|
||||||
module_class.name = module_name
|
module_class.name = module_name
|
||||||
module_class.core = self
|
module_class.core = self
|
||||||
module_class.loggeri = logger.get_instance(module_origin, module_class)
|
module_class.logger = logger.get_instance(module_origin, module_class)
|
||||||
module_class.logger.framework = true
|
module_class.logger.framework = true
|
||||||
loggeri.diag("Adding module to SceneTree")
|
loggeri.diag("Adding module to SceneTree")
|
||||||
custom_modules_node.add_child(module_class)
|
custom_modules_node.add_child(module_class)
|
||||||
|
|
|
@ -19,14 +19,14 @@ extends CoreBaseModule
|
||||||
@onready var suite: BessereTestsTest = get_node_or_null("/root/suite_core")
|
@onready var suite: BessereTestsTest = get_node_or_null("/root/suite_core")
|
||||||
|
|
||||||
func _initialize() -> void:
|
func _initialize() -> void:
|
||||||
loggeri.info("Module has been initialized")
|
logger.info("Module has been initialized")
|
||||||
suite.callback = "_initialize"
|
suite.callback = "_initialize"
|
||||||
|
|
||||||
func _cleanup() -> void:
|
func _cleanup() -> void:
|
||||||
loggeri.info("Cleaning module")
|
logger.info("Cleaning module")
|
||||||
|
|
||||||
func _pull_config() -> void:
|
func _pull_config() -> void:
|
||||||
loggeri.info("The configuration has been updated")
|
logger.info("The configuration has been updated")
|
||||||
suite.callback = "_pull_config"
|
suite.callback = "_pull_config"
|
||||||
|
|
||||||
func hello_test() -> String:
|
func hello_test() -> String:
|
||||||
|
|
Loading…
Reference in a new issue