change type hints
This commit is contained in:
parent
dcc93df5d2
commit
cdae65ec87
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue