package memory import ( "joylink.club/bj-rtsts-server/dto/data_proto" "joylink.club/rtsssimulation/fi" ) // 操作esb按钮 func ChangeEsbButtonState(sim *VerifySimulation, mapId int32, btnId uint32, pressDown bool) error { uid := QueryUidByMidAndComId(mapId, btnId, &data_proto.EsbButton{}) if pressDown { return fi.PressDownButton(sim.World, uid) } else { return fi.PressUpButton(sim.World, uid) } }