Add saves, settings, and multiplayer-safe menus
This commit is contained in:
parent
e2067e3bf4
commit
0d050b08cc
32 changed files with 2468 additions and 49 deletions
26
save/player_save_inspection.gd
Normal file
26
save/player_save_inspection.gd
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
class_name PlayerSaveInspection
|
||||
extends RefCounted
|
||||
|
||||
enum Status {
|
||||
MISSING,
|
||||
VALID_SUPPORTED,
|
||||
MALFORMED,
|
||||
UNSUPPORTED_VERSION,
|
||||
IO_ERROR,
|
||||
}
|
||||
|
||||
var status: Status = Status.MISSING
|
||||
var detected_version: int = -1
|
||||
var catch_count: int = 0
|
||||
var wallet_balance: int = 0
|
||||
var discovered_species_count: int = 0
|
||||
var has_primary_file: bool = false
|
||||
var message: String = ""
|
||||
|
||||
|
||||
func can_continue() -> bool:
|
||||
return status == Status.VALID_SUPPORTED
|
||||
|
||||
|
||||
func can_delete() -> bool:
|
||||
return has_primary_file
|
||||
Loading…
Add table
Add a link
Reference in a new issue