This commit is contained in:
xzb 2023-10-16 10:30:56 +08:00
parent 583fea2654
commit f3fc229b89

View File

@ -39,11 +39,11 @@ func HandleTurnoutOperation(simulation *VerifySimulation, req *request_proto.Tur
case request_proto.Turnout_SetSB:
fi.SetTurnoutFault(simulation.World, uid, component_proto.Turnout_SB)
case request_proto.Turnout_CancelSB:
fi.CancelTurnoutFault(simulation.World, uid, component_proto.Turnout_SB)
fi.CancleTurnoutFault(simulation.World, uid, component_proto.Turnout_SB)
case request_proto.Turnout_SetJC:
fi.SetTurnoutFault(simulation.World, uid, component_proto.Turnout_JC)
case request_proto.Turnout_CancelJC:
fi.CancelTurnoutFault(simulation.World, uid, component_proto.Turnout_JC)
fi.CancleTurnoutFault(simulation.World, uid, component_proto.Turnout_JC)
default:
panic(fmt.Sprintf("未知的道岔操作:%s", req.Operation))
}