Update "Initializing CORE" documentation page

This commit is contained in:
JeremyStar™ 2024-05-15 01:58:47 +02:00
parent fee0bb3eb1
commit 5f598d94f9
Signed by: JeremyStarTM
GPG key ID: E366BAEF67E4704D

View file

@ -12,7 +12,7 @@ extends Node
var core: Core
## Gets a so called "logger instance". It basically saves you an argument on each log call.
@onready var logger: CoreLoggerInstance = core.logger.get_instance("path/to/script.gd")
@onready var logger: CoreLoggerInstance = core.logger.get_instance("path/to/script.gd", self)
# Preinitialization phase
func _init() -> void:
@ -21,9 +21,9 @@ func _init() -> void:
# Allow diagnostic and verbose messages
config.logger_level = CoreTypes.LoggerLevel.DIAG
# Initialize CORE with custom configuration
core = Core.new(config)
core = await Core.new(config)
# Initialize CORE with standard configuration, commented out
#core = Core.new()
#core = await Core.new()
# Initialization phase
func _ready() -> void: