From 137136921337d4d32bdefd758035e570fb59cf4e Mon Sep 17 00:00:00 2001 From: JeremyStarTM Date: Tue, 14 May 2024 00:30:39 +0200 Subject: [PATCH] Make all methods awaitable in PresencodeEntrypoint --- src/classes/entrypoint.gd | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/classes/entrypoint.gd b/src/classes/entrypoint.gd index 096e432..665aa0e 100644 --- a/src/classes/entrypoint.gd +++ b/src/classes/entrypoint.gd @@ -21,8 +21,8 @@ var core: Core var logger: CoreLoggerInstance # Required methods -func initialize() -> void: core.logger.crash("PresencodeEntrypoint", "Method initialize was not overriden") -func switch_to_slide(_slide: int) -> void: core.logger.crash("PresencodeEntrypoint", "Method switch_to_slide was not overriden") +func initialize() -> void: await core.logger.crash("PresencodeEntrypoint", "Method initialize was not overriden") +func switch_to_slide(_new_slide: int) -> void: await core.logger.crash("PresencodeEntrypoint", "Method switch_to_slide was not overriden") # Optional methods -func play_animation(_type: PresencodeTypes.AnimationStage, _old_slide: int, _new_slide: int) -> void: pass +func play_animation(_type: PresencodeTypes.AnimationStage, _old_slide: int, _new_slide: int) -> void: await get_tree().create_timer(0.0).timeout