rename notify to not shadow object.notify

This commit is contained in:
2018-11-28 00:13:26 -05:00
parent 81750a920d
commit 14eb1a87f7
2 changed files with 2 additions and 2 deletions

View File

@@ -17,7 +17,7 @@ class Funge93
override fun get(pos: Vec2): Data93 = contents[pos] ?: DEFAULT_DATA
override fun set(pos: Vec2, data: Data93) {
if (pos in Vec2.ZERO until size) notify(pos) {
if (pos in Vec2.ZERO until size) notifyChanged(pos) {
contents[pos] = data
}
}

View File

@@ -11,7 +11,7 @@ abstract class MutableFunge<V, D : Data>
override val onChange = Event<FungeChange<V, D>>()
fun notify(pos: V, op: () -> Unit) {
fun notifyChanged(pos: V, op: () -> Unit) {
val from = this[pos]
op()
val to = this[pos]