Справочник функций
Godot 4 · GDScript · Cloud saves
list_saves
Lists this player's cloud save slots (metadata only, no data).
Asynchronous (result via signal)
Signature
list_saves() -> voidWhat it does
POSTs /saves/list. saves = Array of { slot, size_bytes, updated_at } (metadata only; the save data itself is not included). Empty Array on failure or when no slots are used.
Parameters
This function takes no parameters.
How to call it
Connect saves_listed first, then call list_saves().
Result signal: saves_listed(saves: Array)
Example
Gamdato.saves_listed.connect(_on_saves)
Gamdato.list_saves()
func _on_saves(saves: Array) -> void:
for s in saves:
print("Slot %d - updated %s" % [s.slot, s.updated_at])Use cases
- Build a save-slot selection screen.
- Show which slots are used and when they were last updated.