SavedSession

@Serializable
sealed interface SavedSession

A game in progress, saved when the app goes to the background so it can be resumed later.

Inheritors

Types

Link copied to clipboard
@Serializable
@SerialName(value = "blocks")
data class Blocks(val savedAt: Long, val snapshot: BlocksSnapshot) : SavedSession
Link copied to clipboard
@Serializable
@SerialName(value = "hive")
data class Hive(val savedAt: Long, val level: Int, val radius: Int, val letters: List<String>, val words: Map<String, List<String>>, val found: List<String>, val extras: List<String>, val hints: Map<String, Int>) : SavedSession
Link copied to clipboard
@Serializable
@SerialName(value = "ludo")
data class Ludo(val savedAt: Long, val state: LudoState) : SavedSession
Link copied to clipboard
@Serializable
@SerialName(value = "ttt")
data class TicTacToe(val savedAt: Long, val mode: GameMode, val size: Int, val difficulty: Difficulty?, val xName: String, val oName: String, val xId: String, val oId: String, val xColor: Long, val oColor: Long, val xKind: String, val oKind: String, val board: String, val turn: Mark, val round: Int, val xWins: Int, val oWins: Int, val draws: Int) : SavedSession

Properties

Link copied to clipboard
abstract val savedAt: Long
Link copied to clipboard
abstract val summary: String

A human-readable line for the "Continue" card.