172f65b14c
【调整消息服务代码】 【删除多余代码】 【调整方法、结构体名称】
17 lines
429 B
Go
17 lines
429 B
Go
package memory
|
|
|
|
import (
|
|
"joylink.club/rtsssimulation/fi"
|
|
)
|
|
|
|
// 操作PSL按钮
|
|
func ChangePSLButtonState(sim *VerifySimulation, mapId int32, gateBoxId, btnCode string, pressDown bool) {
|
|
uid := QueryUidStructure[*StationUidStructure](mapId)
|
|
gateBoxUid := uid.GateBoxIds[gateBoxId].Uid
|
|
if pressDown {
|
|
fi.PressDownButton(sim.World, gateBoxUid+"_"+btnCode)
|
|
} else {
|
|
fi.PressUpButton(sim.World, gateBoxUid+"_"+btnCode)
|
|
}
|
|
}
|