Add reference to 'communication'

This commit is contained in:
JeremyStar™ 2024-05-14 00:34:03 +02:00
parent 4a76bb0546
commit 294f5f188d
Signed by: JeremyStarTM
GPG key ID: E366BAEF67E4704D
2 changed files with 2 additions and 0 deletions

View file

@ -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")

View file

@ -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)