[6.2.0] wait to test

This commit is contained in:
zhongchao
2023-11-13 14:10:45 +08:00
parent 0aca34c032
commit a686e1fa02
8 changed files with 91 additions and 6 deletions

View File

@@ -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 {