api/internal/gamification/game_prewarmer
library
Classes
-
GamePrewarmer
-
Owns the prewarm state: engine prewarm keeps one warmed skin payload so
the next open skips the download, and game prewarm holds at most one
WarmedGame for the campaign the user is about to open. Every other path
destroys the held game through discard, which only logs. Port of
Android
GamePrewarmer (iOS GamePrewarmer); pure Dart, no WebView.
-
WarmedGame
-
A game loaded hidden (bytes fetched, slot admitted) that no host has
adopted yet. Until a host attaches, page events are recorded and skin
messages are buffered; the host replays both when the game opens, so the
ready budget counts from the tap while the skin bytes are already warm.
This is the Dart side of "hold messages until the page defines
DigiaBridge": nothing is sent to a page that cannot receive yet.