172f65b14c
【调整消息服务代码】 【删除多余代码】 【调整方法、结构体名称】
17 lines
402 B
Go
17 lines
402 B
Go
package memory
|
|
|
|
import (
|
|
"joylink.club/bj-rtsts-server/ts/protos/graphicData"
|
|
"joylink.club/rtsssimulation/fi"
|
|
)
|
|
|
|
// 操作esb按钮
|
|
func ChangeEsbButtonState(sim *VerifySimulation, mapId int32, btnId string, pressDown bool) {
|
|
uid := QueryUidByMidAndComId(mapId, btnId, &graphicData.EsbButton{})
|
|
if pressDown {
|
|
fi.PressDownButton(sim.World, uid)
|
|
} else {
|
|
fi.PressUpButton(sim.World, uid)
|
|
}
|
|
}
|