Reference des fonctions
Godot 4 · GDScript · Downloadable content
get_bootstrap
Fetches all auto-download content in a single flat response.
Asynchronous (result via signal)
Signature
get_bootstrap() -> voidWhat it does
GETs /gamecontent/bootstrap. payload is a flat envelope Dictionary with { schema_version, generated_at } plus every always_download key at the top level. Empty Dictionary on failure. Server rate-limited to 10 requests/min, so call it once (e.g. on a loading screen), not in a loop.
Parameters
This function takes no parameters.
How to call it
Connect bootstrap_loaded first, then call get_bootstrap().
Result signal: bootstrap_loaded(payload: Dictionary)
Example
Gamdato.bootstrap_loaded.connect(_on_bootstrap)
Gamdato.get_bootstrap()
func _on_bootstrap(payload: Dictionary) -> void:
if payload.has("levels"):
_load_levels(payload["levels"])Use cases
- Load every auto-download asset at once on a loading screen.
- Grab the full always_download set in one request instead of per-key calls.