Make all methods awaitable in PresencodeEntrypoint

This commit is contained in:
JeremyStar™ 2024-05-14 00:30:39 +02:00
parent 36492503be
commit 1371369213
Signed by: JeremyStarTM
GPG key ID: E366BAEF67E4704D

View file

@ -21,8 +21,8 @@ var core: Core
var logger: CoreLoggerInstance var logger: CoreLoggerInstance
# Required methods # Required methods
func initialize() -> void: core.logger.crash("PresencodeEntrypoint", "Method initialize was not overriden") func initialize() -> void: await 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 switch_to_slide(_new_slide: int) -> void: await core.logger.crash("PresencodeEntrypoint", "Method switch_to_slide was not overriden")
# Optional methods # 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