From 1d183dfa12d9932a2aa37f981afad5ab3536e429 Mon Sep 17 00:00:00 2001 From: xzb <223@qq.com> Date: Wed, 13 Dec 2023 17:54:23 +0800 Subject: [PATCH] =?UTF-8?q?ISCS=E7=8E=AF=E5=A2=83=E4=B8=8E=E8=AE=BE?= =?UTF-8?q?=E5=A4=87=E7=9B=91=E6=8E=A7=E7=B3=BB=E7=BB=9Fecs=E5=AE=9A?= =?UTF-8?q?=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- component/iscs_pscada.go | 1 + fi/iscs_pscada.go | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/component/iscs_pscada.go b/component/iscs_pscada.go index 7940d49..8eb99f3 100644 --- a/component/iscs_pscada.go +++ b/component/iscs_pscada.go @@ -171,6 +171,7 @@ var ( var ( DevicePlacingOverhaulCardTag = ecs.NewTag() //设备置牌:检修 DevicePlacingLandingCardTag = ecs.NewTag() //设备置牌:接地 + DevicePlacingHandTag = ecs.NewTag() //设备置牌:就地(手型牌) DevicePlacingOtherCardTag = ecs.NewTag() //设备置牌:其他 ) diff --git a/fi/iscs_pscada.go b/fi/iscs_pscada.go index 22975cf..ae86aac 100644 --- a/fi/iscs_pscada.go +++ b/fi/iscs_pscada.go @@ -15,6 +15,7 @@ const ( PlacingNonCard PlacingCardOptEnum = iota PlacingOverhaulCard PlacingLandingCard + PlacingHandCard PlacingOtherCard ) @@ -30,6 +31,7 @@ func DevicePlacingCardOperate(w ecs.World, deviceId string, placingCard PlacingC deviceEntry.RemoveComponent(component.DevicePlacingLandingCardTag) deviceEntry.RemoveComponent(component.DevicePlacingOverhaulCardTag) deviceEntry.RemoveComponent(component.DevicePlacingOtherCardTag) + deviceEntry.RemoveComponent(component.DevicePlacingHandTag) } switch placingCard { case PlacingLandingCard: @@ -41,6 +43,9 @@ func DevicePlacingCardOperate(w ecs.World, deviceId string, placingCard PlacingC case PlacingOtherCard: clearAllPlacingTags(deviceEntry) deviceEntry.AddComponent(component.DevicePlacingOtherCardTag) + case PlacingHandCard: + clearAllPlacingTags(deviceEntry) + deviceEntry.AddComponent(component.DevicePlacingHandTag) default: clearAllPlacingTags(deviceEntry) }