mirror of
https://github.com/Relintai/pandemonium_demo_projects.git
synced 2024-12-21 13:56:50 +01:00
11 lines
398 B
GDScript
11 lines
398 B
GDScript
extends HTTPSessionManagerDB
|
|
|
|
func _ready() -> void:
|
|
DatabaseManager.connect("initialized", self, "on_databases_initialized", [], CONNECT_ONESHOT)
|
|
# You could also connect to the migration signal, and write migrations if you need them
|
|
|
|
func on_databases_initialized() -> void:
|
|
# Load sessions after the databases are initialized
|
|
# This happens on the Main node.
|
|
call_deferred("load_sessions")
|