From 29325f98dbfc74dd68fa519280118e9544e17327 Mon Sep 17 00:00:00 2001 From: tiger_zhou Date: Sun, 4 Feb 2024 18:24:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B3=A8=E9=87=8A=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sys/circuit_sys/psd.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/circuit_sys/psd.go b/sys/circuit_sys/psd.go index dfbe5c5..63835f1 100644 --- a/sys/circuit_sys/psd.go +++ b/sys/circuit_sys/psd.go @@ -70,20 +70,21 @@ func (p *PsdSys) Update(world ecs.World) { var pabTd bool for _, mkxEntry := range pmc.MkxList { mkx := component.MkxType.Get(mkxEntry) + //门控箱站台门关闭 pcb := component.BitStateType.Get(mkx.PCB) if !pcb.BypassEnable { if mkx.PCB != nil && pcb.Val { pcbTd = true } } - + //门控箱站台门打开 pob := component.BitStateType.Get(mkx.POB) if !pob.BypassEnable { if mkx.POB != nil && pob.Val { pobTd = true } } - + //门控箱站台确认 pab := component.BitStateType.Get(mkx.PAB) if !pab.BypassEnable { if mkx.PAB != nil && pab.Val {