change type hints

This commit is contained in:
Luke Hubmayer-Werner 2023-03-18 14:34:42 +10:30
parent dcc93df5d2
commit cdae65ec87
1 changed files with 4 additions and 4 deletions

View File

@ -31,16 +31,16 @@ func find_file(name: String, print_notfound:=false) -> String:
return NOT_FOUND
var fallback_audiostream = AudioStreamOGGVorbis.new()
var fallback_videostream = VideoStreamWebm.new()
var fallback_audiostream: AudioStream = AudioStreamOGGVorbis.new()
var fallback_videostream: VideoStream = VideoStreamWebm.new()
var fallback_texture := ImageTexture.new()
func load_ogg(name: String) -> AudioStreamOGGVorbis: # Searches through all of the paths to find the file
func load_ogg(name: String) -> AudioStream: # Searches through all of the paths to find the file
match find_file(name):
NOT_FOUND: return fallback_audiostream
var filename: return FileHelpers.load_ogg(filename)
func load_video(name: String): # Searches through all of the paths to find the file
func load_video(name: String) -> VideoStream: # Searches through all of the paths to find the file
match find_file(name):
NOT_FOUND: return fallback_videostream
var filename: return FileHelpers.load_video(filename)