initial commit

This commit is contained in:
2024-04-02 23:33:30 +11:00
commit 5f9db2d250
93 changed files with 2282 additions and 0 deletions

View File

@ -0,0 +1,4 @@
class_name FishProfile extends Resource
@export var fish_name: String = "name"
@export var picture: Texture

14
Resources/save_file.gd Normal file
View File

@ -0,0 +1,14 @@
class_name SaveFile extends Resource
const SAVE_PATH: String = "user://save.tres"
@export var catfish_name: String
@export var accepted_fish: Array[FishProfile]
func save_to_disk() -> void:
ResourceSaver.save(self, SAVE_PATH)
static func load_profile_from_disk() -> SaveFile:
if ResourceLoader.exists(SAVE_PATH):
return ResourceLoader.load(SAVE_PATH)
return SaveFile.new()