CORE/tests/custom_module.gd
JeremyStarTM 32e09ea296 Framework rework
Changes in this commit include:
- Add Core.cleanup() and CoreBaseModule._cleanup() functions
- All builtin modules now clean and free any nodes
- Reduce code duplication in src/core.gd by not writing the same code for all builtin modules but instead iterating through a array
2024-03-29 02:40:56 +01:00

17 lines
507 B
GDScript

extends CoreBaseModule
@onready var suite: BessereTestsTest = get_node_or_null("/root/suite_core")
func _initialize() -> void:
logger.info("tests/custom_module.gd", "Module has been initialized")
suite.callback = "_initialize"
func _cleanup() -> void:
logger.info("tests/custom_module.gd", "Cleaning module")
func _pull_config() -> void:
logger.info("tests/custom_module.gd", "The configuration has been updated")
suite.callback = "_pull_config"
func hello_test() -> String:
return "Hello Test!"