rename notify to not shadow object.notify
This commit is contained in:
@@ -17,7 +17,7 @@ class Funge93
|
|||||||
|
|
||||||
override fun get(pos: Vec2): Data93 = contents[pos] ?: DEFAULT_DATA
|
override fun get(pos: Vec2): Data93 = contents[pos] ?: DEFAULT_DATA
|
||||||
override fun set(pos: Vec2, data: Data93) {
|
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
|
contents[pos] = data
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ abstract class MutableFunge<V, D : Data>
|
|||||||
|
|
||||||
override val onChange = Event<FungeChange<V, D>>()
|
override val onChange = Event<FungeChange<V, D>>()
|
||||||
|
|
||||||
fun notify(pos: V, op: () -> Unit) {
|
fun notifyChanged(pos: V, op: () -> Unit) {
|
||||||
val from = this[pos]
|
val from = this[pos]
|
||||||
op()
|
op()
|
||||||
val to = this[pos]
|
val to = this[pos]
|
||||||
|
|||||||
Reference in New Issue
Block a user