manueldidonna / pokemon-save-editor-android

A work-in-progress pokémon save editor for Android
GNU General Public License v3.0
0 stars 0 forks source link

Remove Property sealed class #26

Closed manueldidonna closed 4 years ago

manueldidonna commented 4 years ago

Replace Property with nullable `properties. Property.Nothing would correspond to null

// before
interface Pokemon {
    val heldItem: Property<Int> get() = Property.Nothing
    val pokerus: Property<Pokerus> get() = Property.Nothing
}

// after
interface Pokemon {
    val heldItem: Int? get() = null
    val pokerus: Pokerus? get() = null
}