注释调整
This commit is contained in:
parent
4adeaedd5a
commit
29325f98db
@ -70,20 +70,21 @@ func (p *PsdSys) Update(world ecs.World) {
|
|||||||
var pabTd bool
|
var pabTd bool
|
||||||
for _, mkxEntry := range pmc.MkxList {
|
for _, mkxEntry := range pmc.MkxList {
|
||||||
mkx := component.MkxType.Get(mkxEntry)
|
mkx := component.MkxType.Get(mkxEntry)
|
||||||
|
//门控箱站台门关闭
|
||||||
pcb := component.BitStateType.Get(mkx.PCB)
|
pcb := component.BitStateType.Get(mkx.PCB)
|
||||||
if !pcb.BypassEnable {
|
if !pcb.BypassEnable {
|
||||||
if mkx.PCB != nil && pcb.Val {
|
if mkx.PCB != nil && pcb.Val {
|
||||||
pcbTd = true
|
pcbTd = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
//门控箱站台门打开
|
||||||
pob := component.BitStateType.Get(mkx.POB)
|
pob := component.BitStateType.Get(mkx.POB)
|
||||||
if !pob.BypassEnable {
|
if !pob.BypassEnable {
|
||||||
if mkx.POB != nil && pob.Val {
|
if mkx.POB != nil && pob.Val {
|
||||||
pobTd = true
|
pobTd = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
//门控箱站台确认
|
||||||
pab := component.BitStateType.Get(mkx.PAB)
|
pab := component.BitStateType.Get(mkx.PAB)
|
||||||
if !pab.BypassEnable {
|
if !pab.BypassEnable {
|
||||||
if mkx.PAB != nil && pab.Val {
|
if mkx.PAB != nil && pab.Val {
|
||||||
|
Loading…
Reference in New Issue
Block a user