diff --git a/fi/section.go b/fi/section.go index f7cbc78..1193eb7 100644 --- a/fi/section.go +++ b/fi/section.go @@ -2,10 +2,11 @@ package fi import ( "fmt" + "strings" + "joylink.club/ecs" "joylink.club/rtsssimulation/component" "joylink.club/rtsssimulation/entity" - "strings" ) // AxleSectionDrstDrive 计轴直接复位操作 @@ -19,12 +20,12 @@ func AxleSectionDrstDrive(w ecs.World, sectionId string, set bool) error { if sectionModel == nil { return ecs.NewErrResult(fmt.Errorf("区段模型[%s]不存实体", sectionId)) } - if set { - axleSectionEntry := wd.EntityMap[sectionId] - if !axleSectionEntry.HasComponent(component.AxleSectionFaultTag) { - return ecs.NewErrResult(fmt.Errorf("区段[%s]非故障占用,无法进行复位操作", sectionId)) - } - } + // if set { + // axleSectionEntry := wd.EntityMap[sectionId] + // if !axleSectionEntry.HasComponent(component.AxleSectionFaultTag) { + // return ecs.NewErrResult(fmt.Errorf("区段[%s]非故障占用,无法进行复位操作", sectionId)) + // } + // } // faDcAxleDeviceEntry := entity.FindAxleManageDevice(wd, sectionModel.CentralizedStation()) @@ -53,12 +54,12 @@ func AxleSectionPdrstDrive(w ecs.World, sectionId string, set bool) error { if sectionModel == nil { return ecs.NewErrResult(fmt.Errorf("区段模型[%s]不存实体", sectionId)) } - if set { - axleSectionEntry := wd.EntityMap[sectionId] - if !axleSectionEntry.HasComponent(component.AxleSectionFaultTag) { - return ecs.NewErrResult(fmt.Errorf("区段[%s]非故障占用,无法进行复位操作", sectionId)) - } - } + // if set { + // axleSectionEntry := wd.EntityMap[sectionId] + // if !axleSectionEntry.HasComponent(component.AxleSectionFaultTag) { + // return ecs.NewErrResult(fmt.Errorf("区段[%s]非故障占用,无法进行复位操作", sectionId)) + // } + // } // faDcAxleDeviceEntry := entity.FindAxleManageDevice(wd, sectionModel.CentralizedStation()) diff --git a/jl-ecs-go b/jl-ecs-go index 5d4e5c5..8a028e6 160000 --- a/jl-ecs-go +++ b/jl-ecs-go @@ -1 +1 @@ -Subproject commit 5d4e5c51fd43fa25d3ef7a8bd2cbc3d277b94a8d +Subproject commit 8a028e6405150dada3caa4c90f34ebf93aef6163