From 294f5f188d47f6e02f1c126b5b94aac902bed1be Mon Sep 17 00:00:00 2001 From: JeremyStarTM Date: Tue, 14 May 2024 00:34:03 +0200 Subject: [PATCH] Add reference to 'communication' --- src/classes/entrypoint.gd | 1 + src/presenloader.gd | 1 + 2 files changed, 2 insertions(+) diff --git a/src/classes/entrypoint.gd b/src/classes/entrypoint.gd index 665aa0e..34cc5c5 100644 --- a/src/classes/entrypoint.gd +++ b/src/classes/entrypoint.gd @@ -19,6 +19,7 @@ class_name PresencodeEntrypoint var core: Core var logger: CoreLoggerInstance +var api: PresencodeCommunication # Required methods func initialize() -> void: await core.logger.crash("PresencodeEntrypoint", "Method initialize was not overriden") diff --git a/src/presenloader.gd b/src/presenloader.gd index 406034e..40395b0 100644 --- a/src/presenloader.gd +++ b/src/presenloader.gd @@ -241,6 +241,7 @@ func inject_entrypoint() -> void: # Update variables entrypoint_node.core = core entrypoint_node.logger = core.logger.get_instance(communication.get_source_path("src/" + manifest["entrypoint"]), entrypoint_node) + entrypoint_node.communication = communication # Add to SceneTree get_tree().root.add_child(entrypoint_node)