[8.1.0]统一红绿灯
This commit is contained in:
@@ -106,6 +106,21 @@ object CallerTrafficLightListenerManager : CallerBase<IMoGoTrafficLightListener>
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 云控基础平台红绿灯信号
|
||||
* @param currentState 当前灯态
|
||||
* @param currentDuration 当前灯态倒计时
|
||||
* @param nextState 下一灯态
|
||||
* @param nextDuration 下一灯态倒计时
|
||||
*/
|
||||
fun showCloudTrafficLight(currentState: TrafficLightEnum,currentDuration: Int,
|
||||
nextState: TrafficLightEnum, nextDuration: Int){
|
||||
M_LISTENERS.forEach{
|
||||
val listener = it.value
|
||||
listener.showCloudTrafficLight(currentState, currentDuration, nextState, nextDuration)
|
||||
}
|
||||
}
|
||||
|
||||
fun changeCountdownTrafficLightNum(redNum: Int, yellowNum: Int, greenNum: Int) {
|
||||
M_LISTENERS.forEach {
|
||||
val listener = it.value
|
||||
|
||||
Reference in New Issue
Block a user