turnout
This commit is contained in:
parent
583fea2654
commit
f3fc229b89
@ -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))
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user