Package-level declarations
Overview
Storage-related types and contracts used by the core module to define how games are persisted.
Key Components
GameStorageType— Enum defining storage backends (FILE, MONGODB)StorageParams— Parameters for storage configurationSerializerimplementations — Convert domain objects to/from storage format
Responsibilities
Defining storage types and configurations
Providing serialization contracts
Bridging between core domain and storage implementations
Types
Link copied to clipboard
enum GameStorageType(val storage: (StorageParams) -> AsyncStorage<String, GameState, String>) : Enum<GameStorageType>
Enumeration of available storage types for game state persistence. Each type provides a factory function to create the appropriate storage instance.
Link copied to clipboard
Sealed class representing different storage backend configurations. Different storage implementations can be selected by creating appropriate subclass instances.