[6.2.0] wait to test
This commit is contained in:
@@ -2,17 +2,29 @@ package com.mogo.eagle.core.function.call.map
|
||||
|
||||
import com.mogo.eagle.core.function.api.map.roma.IMoGoRomaListener
|
||||
import com.mogo.eagle.core.function.call.base.CallerBase
|
||||
import kotlin.properties.Delegates
|
||||
|
||||
object CallerMapRomaListener : CallerBase<IMoGoRomaListener>() {
|
||||
|
||||
private var roma = false
|
||||
private var romaStatus = -1
|
||||
private var romaMsg: String = ""
|
||||
private var romaRange:Boolean = false
|
||||
|
||||
override fun doSomeAfterAddListener(tag: String, listener: IMoGoRomaListener) {
|
||||
listener.romaStatus(roma)
|
||||
}
|
||||
|
||||
fun invokeMapRomaRange(romaRange: Boolean) {
|
||||
if(romaRange!= this.romaRange){
|
||||
this.romaRange = romaRange
|
||||
M_LISTENERS.forEach {
|
||||
val listener = it.value
|
||||
listener.mapRomaInRange(romaRange)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fun invokeMapRomaStatus(status: Int, msg: String) {
|
||||
romaStatus = status
|
||||
romaMsg = msg
|
||||
@@ -22,6 +34,13 @@ object CallerMapRomaListener : CallerBase<IMoGoRomaListener>() {
|
||||
}
|
||||
}
|
||||
|
||||
fun invokeRomaViewStatus(range:Boolean){
|
||||
M_LISTENERS.forEach {
|
||||
val listener = it.value
|
||||
listener.romaViewStatus(range)
|
||||
}
|
||||
}
|
||||
|
||||
fun invokeMapRoma(romaStatus: Boolean) {
|
||||
roma = romaStatus
|
||||
M_LISTENERS.forEach {
|
||||
|
||||
Reference in New Issue
Block a user