package memory import ( "joylink.club/bj-rtsts-server/ts/protos/graphicData" "joylink.club/rtsssimulation/fi" ) // 继电器操作方法 func ChangeRelayState(sim *VerifySimulation, mapId int32, id string, td bool) { uid := QueryUidByMidAndComId(mapId, id, &graphicData.Relay{}) if td { fi.DriveRelayUp(sim.World, uid) } else { fi.DriveRelayDown(sim.World, uid) } }