Refactor: Added explicit typing and void return types
- Introduced explicit typing to variables and functions across multiple scripts for better code clarity. - Specified 'void' as the return type for functions that do not return a value. - Removed redundant code in some scripts.
This commit is contained in:
parent
a62cd6018e
commit
2a9e78b52e
37 changed files with 216 additions and 248 deletions
|
|
@ -1,7 +1,7 @@
|
|||
extends Level
|
||||
class_name HighScoresScreen
|
||||
|
||||
func _ready():
|
||||
func _ready() -> void:
|
||||
update_game_state()
|
||||
%BeeDeathLabel.text = Str.format_number(HighScoreMgr.loaded_data.total_bees_killed)
|
||||
%HoneyCountLabel.text = Str.format_number(HighScoreMgr.loaded_data.total_honey_collected)
|
||||
|
|
@ -15,5 +15,5 @@ func _ready():
|
|||
|
||||
%MainMenuButton.connect("pressed", Callable(self, "on_main_menu_button_pressed"))
|
||||
|
||||
func on_main_menu_button_pressed():
|
||||
func on_main_menu_button_pressed() -> void:
|
||||
SceneMgr.load_scene("MAINMENU")
|
||||
Loading…
Add table
Add a link
Reference in a new issue