Add reference to 'communication'
This commit is contained in:
parent
4a76bb0546
commit
294f5f188d
2 changed files with 2 additions and 0 deletions
|
@ -19,6 +19,7 @@ class_name PresencodeEntrypoint
|
||||||
|
|
||||||
var core: Core
|
var core: Core
|
||||||
var logger: CoreLoggerInstance
|
var logger: CoreLoggerInstance
|
||||||
|
var api: PresencodeCommunication
|
||||||
|
|
||||||
# Required methods
|
# Required methods
|
||||||
func initialize() -> void: await core.logger.crash("PresencodeEntrypoint", "Method initialize was not overriden")
|
func initialize() -> void: await core.logger.crash("PresencodeEntrypoint", "Method initialize was not overriden")
|
||||||
|
|
|
@ -241,6 +241,7 @@ func inject_entrypoint() -> void:
|
||||||
# Update variables
|
# Update variables
|
||||||
entrypoint_node.core = core
|
entrypoint_node.core = core
|
||||||
entrypoint_node.logger = core.logger.get_instance(communication.get_source_path("src/" + manifest["entrypoint"]), entrypoint_node)
|
entrypoint_node.logger = core.logger.get_instance(communication.get_source_path("src/" + manifest["entrypoint"]), entrypoint_node)
|
||||||
|
entrypoint_node.communication = communication
|
||||||
|
|
||||||
# Add to SceneTree
|
# Add to SceneTree
|
||||||
get_tree().root.add_child(entrypoint_node)
|
get_tree().root.add_child(entrypoint_node)
|
||||||
|
|
Loading…
Reference in a new issue