Blame view
src/main/kotlin/application/model/ObservableVessel.kt
442 Bytes
b350f9dfe import vessels an... |
1 2 3 4 5 6 7 8 9 |
package application.model import kotlin.properties.Delegates class ObservableVessel { val listeners: MutableList<MessageListener> = mutableListOf() var vessels: MutableMap<Int?, Vessel> by Delegates.observable( initialValue = mutableMapOf(), |
52321443a different color f... |
10 |
onChange = { _, _, new -> |
b350f9dfe import vessels an... |
11 12 13 14 15 16 17 18 19 |
run { listeners.forEach { it.onValueChanged(new) } } } ) } |