Make all methods awaitable in PresencodeEntrypoint
This commit is contained in:
parent
36492503be
commit
1371369213
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue