不带电路的信号机

This commit is contained in:
xzb 2023-10-20 10:31:06 +08:00
parent 7e05997668
commit ec53a8e204

View File

@ -38,8 +38,6 @@ func loadSignal3xh3(w ecs.World, signal *repository.Signal, signalEntry *ecs.Ent
component.Signal3XH3LsqType.Set(signalEntry, &component.Signal3XH3Lsq{})
component.Signal3XH3LscType.Set(signalEntry, &component.Signal3XH3Lsc{})
component.SignalLightsType.Set(signalEntry, newSignalLights(w, component.HdTag, component.LdTag, component.UdTag))
//封绿灯,即有绿灯但绿被封
component.SignalLightsType.Get(signalEntry).GetLightByTag(component.LdTag).AddComponent(component.FdTag)
//校验
if elecState.Z3XH3_DDJ == nil {
return fmt.Errorf("id=[%s]的信号机3xh3缺少元件DDJ", signal.Id())