enabled enforced static typing

This commit is contained in:
2024-02-22 06:22:22 +11:00
parent e1a867d2a9
commit a93660f755
1645 changed files with 24730 additions and 2078 deletions

View File

@@ -1,7 +1,6 @@
extends Resource
class_name SaveStats
class_name SaveStats extends Resource
const SAVE_PATH := "user://save_stats.tres"
const SAVE_PATH: String = "user://save_stats.tres"
@export var wins: int
@export var losses: int
@@ -18,7 +17,7 @@ func add_game_outcome(outcome: bool) -> void:
twenty_game_history.pop_front()
func save_profile_to_disk():
func save_profile_to_disk() -> void:
ResourceSaver.save(self, SAVE_PATH)
static func load_profile_from_disk() -> SaveStats:
if ResourceLoader.exists(SAVE_PATH):