-18 | - Dawnhold Dark Magic 0.16.0 Sahrab Android

7.1 Repository Skeleton @Singleton class SpellRepository @Inject constructor( private val spellDao: SpellDao, private val componentDao: ComponentDao, private val api: SpellApi, @ApplicationContext private val ctx: Context ) { // Local flow val allSpells: Flow<List<SpellEntity>> = spellDao.observeAll()

val name = "$rune.name of $gesture.name" val mana = comps.sumOf it.rarity * when (it.type) ComponentType.RUNE -> 5 ComponentType.REAGENT -> 3 ComponentType.GESTURE -> 2 -18 - dawnhold Dark Magic 0.16.0 sahrab Android

@Insert(onConflict = OnConflictStrategy.REPLACE) suspend fun insertAll(components: List<ComponentEntity>) private val componentDao: ComponentDao