package memory import ( "joylink.club/rtsssimulation/fi" ) // 操作PSL按钮 func ChangePSLButtonState(sim *VerifySimulation, mapId int32, gateBoxId uint32, 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) } }