Add named save slots, progression import/export, and a unified play flow. Add live friend requests, presence, invitations, and relationship controls without durable discovery-server social storage. Advance the network protocol with isolated channels, movement reconciliation, late-join recovery, fishing replication, and animation synchronization. Preserve per-species catch totals, refine generated-world startup and water recovery, and complete the related input and interface improvements.
30 lines
616 B
GDScript
30 lines
616 B
GDScript
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 total_experience: int = 0
|
|
var player_level: int = 1
|
|
var world_layout: StringName = &"generated_world"
|
|
var world_seed: 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
|