From 115241bfc7a0b2e9d7d1c44d01949b3c6809c17e Mon Sep 17 00:00:00 2001 From: xzb <223@qq.com> Date: Mon, 9 Oct 2023 17:58:29 +0800 Subject: [PATCH] fi signal --- fi/signal_2xh1.go | 12 ++++++------ fi/signal_3xh1.go | 16 ++++++++-------- fi/signal_3xh2.go | 16 ++++++++-------- fi/signal_3xh3.go | 16 ++++++++-------- fi/signal_3xh4.go | 12 ++++++------ fi/signal_dcxh.go | 8 ++++---- fi/signal_jckxh.go | 12 ++++++------ 7 files changed, 46 insertions(+), 46 deletions(-) diff --git a/fi/signal_2xh1.go b/fi/signal_2xh1.go index 597174d..bb26943 100644 --- a/fi/signal_2xh1.go +++ b/fi/signal_2xh1.go @@ -8,9 +8,9 @@ import ( // signal 2xh1 接口:点灯操作、开通列车信号、开通禁止信号 -// Drive2XH1Dd 点灯操作 +// DriveSignal2XH1Dd 点灯操作 // dd : true-物理点灯,false-物理灭灯 -func Drive2XH1Dd(w ecs.World, signalId string, dd bool) { +func DriveSignal2XH1Dd(w ecs.World, signalId string, dd bool) { w.Execute(func() { wd := entity.GetWorldData(w) signalEntry, ok := wd.EntityMap[signalId] @@ -23,8 +23,8 @@ func Drive2XH1Dd(w ecs.World, signalId string, dd bool) { }) } -// Drive2XH1Lx 开通列车信号(绿灯亮) -func Drive2XH1Lx(w ecs.World, signalId string) { +// DriveSignal2XH1Lx 开通列车信号(绿灯亮) +func DriveSignal2XH1Lx(w ecs.World, signalId string) { w.Execute(func() { wd := entity.GetWorldData(w) signalEntry, ok := wd.EntityMap[signalId] @@ -37,8 +37,8 @@ func Drive2XH1Lx(w ecs.World, signalId string) { }) } -// Drive2XH1Non 开通禁止信号(红灯亮) -func Drive2XH1Non(w ecs.World, signalId string) { +// DriveSignal2XH1Non 开通禁止信号(红灯亮) +func DriveSignal2XH1Non(w ecs.World, signalId string) { w.Execute(func() { wd := entity.GetWorldData(w) signalEntry, ok := wd.EntityMap[signalId] diff --git a/fi/signal_3xh1.go b/fi/signal_3xh1.go index 2daf06b..983ce40 100644 --- a/fi/signal_3xh1.go +++ b/fi/signal_3xh1.go @@ -8,9 +8,9 @@ import ( // signal 3xh1 接口:点灯操作、开通列车信号、开通引导信号、开通禁止信号 -// Drive3XH1Dd 点灯操作 +// DriveSignal3XH1Dd 点灯操作 // dd : true-物理点灯;false-物理灭灯 -func Drive3XH1Dd(w ecs.World, signalId string, dd bool) { +func DriveSignal3XH1Dd(w ecs.World, signalId string, dd bool) { w.Execute(func() { wd := entity.GetWorldData(w) signalEntry, ok := wd.EntityMap[signalId] @@ -24,9 +24,9 @@ func Drive3XH1Dd(w ecs.World, signalId string, dd bool) { }) } -// Drive3XH1Lx 开通列车信号(直向通过则亮绿灯;侧向通过则亮黄灯) +// DriveSignal3XH1Lx 开通列车信号(直向通过则亮绿灯;侧向通过则亮黄灯) // xz : true-直向通过,false-侧向通过 -func Drive3XH1Lx(w ecs.World, signalId string, zx bool) { +func DriveSignal3XH1Lx(w ecs.World, signalId string, zx bool) { w.Execute(func() { wd := entity.GetWorldData(w) signalEntry, ok := wd.EntityMap[signalId] @@ -45,8 +45,8 @@ func Drive3XH1Lx(w ecs.World, signalId string, zx bool) { }) } -// Drive3XH1Yx 开通引导信号(红灯亮且黄灯亮) -func Drive3XH1Yx(w ecs.World, signalId string) { +// DriveSignal3XH1Yx 开通引导信号(红灯亮且黄灯亮) +func DriveSignal3XH1Yx(w ecs.World, signalId string) { w.Execute(func() { wd := entity.GetWorldData(w) signalEntry, ok := wd.EntityMap[signalId] @@ -65,8 +65,8 @@ func Drive3XH1Yx(w ecs.World, signalId string) { }) } -// Drive3XH1Non 开通禁止信号(红灯亮) -func Drive3XH1Non(w ecs.World, signalId string) { +// DriveSignal3XH1Non 开通禁止信号(红灯亮) +func DriveSignal3XH1Non(w ecs.World, signalId string) { w.Execute(func() { wd := entity.GetWorldData(w) signalEntry, ok := wd.EntityMap[signalId] diff --git a/fi/signal_3xh2.go b/fi/signal_3xh2.go index 3e09e62..c975a98 100644 --- a/fi/signal_3xh2.go +++ b/fi/signal_3xh2.go @@ -8,9 +8,9 @@ import ( // signal 3xh2 接口:点灯操作、开通列车信号、开通引导信号、开通禁止信号 -// Drive3XH2Dd 点灯操作 +// DriveSignal3XH2Dd 点灯操作 // dd : true-物理点灯;false-物理灭灯 -func Drive3XH2Dd(w ecs.World, signalId string, dd bool) { +func DriveSignal3XH2Dd(w ecs.World, signalId string, dd bool) { w.Execute(func() { wd := entity.GetWorldData(w) signalEntry, ok := wd.EntityMap[signalId] @@ -24,8 +24,8 @@ func Drive3XH2Dd(w ecs.World, signalId string, dd bool) { }) } -// Drive3XH2Lx 开通列车信号(绿灯亮) -func Drive3XH2Lx(w ecs.World, signalId string) { +// DriveSignal3XH2Lx 开通列车信号(绿灯亮) +func DriveSignal3XH2Lx(w ecs.World, signalId string) { w.Execute(func() { wd := entity.GetWorldData(w) signalEntry, ok := wd.EntityMap[signalId] @@ -41,8 +41,8 @@ func Drive3XH2Lx(w ecs.World, signalId string) { }) } -// Drive3XH2Yx 开通引导信号(黄灯亮且红灯亮) -func Drive3XH2Yx(w ecs.World, signalId string) { +// DriveSignal3XH2Yx 开通引导信号(黄灯亮且红灯亮) +func DriveSignal3XH2Yx(w ecs.World, signalId string) { w.Execute(func() { wd := entity.GetWorldData(w) signalEntry, ok := wd.EntityMap[signalId] @@ -58,8 +58,8 @@ func Drive3XH2Yx(w ecs.World, signalId string) { }) } -// Drive3XH2Non 开通禁止信号(红灯亮) -func Drive3XH2Non(w ecs.World, signalId string) { +// DriveSignal3XH2Non 开通禁止信号(红灯亮) +func DriveSignal3XH2Non(w ecs.World, signalId string) { w.Execute(func() { wd := entity.GetWorldData(w) signalEntry, ok := wd.EntityMap[signalId] diff --git a/fi/signal_3xh3.go b/fi/signal_3xh3.go index 0f47a22..a3d321c 100644 --- a/fi/signal_3xh3.go +++ b/fi/signal_3xh3.go @@ -8,9 +8,9 @@ import ( // signal 3xh3 接口:点灯操作、开通列车信号、开通引导信号、开通禁止信号 -// Drive3XH3Dd 点灯操作 +// DriveSignal3XH3Dd 点灯操作 // dd : true-物理点灯;false-物理灭灯 -func Drive3XH3Dd(w ecs.World, signalId string, dd bool) { +func DriveSignal3XH3Dd(w ecs.World, signalId string, dd bool) { w.Execute(func() { wd := entity.GetWorldData(w) signalEntry, ok := wd.EntityMap[signalId] @@ -24,8 +24,8 @@ func Drive3XH3Dd(w ecs.World, signalId string, dd bool) { }) } -// Drive3XH3Lx 开通列车信号(黄灯亮) -func Drive3XH3Lx(w ecs.World, signalId string) { +// DriveSignal3XH3Lx 开通列车信号(黄灯亮) +func DriveSignal3XH3Lx(w ecs.World, signalId string) { w.Execute(func() { wd := entity.GetWorldData(w) signalEntry, ok := wd.EntityMap[signalId] @@ -41,8 +41,8 @@ func Drive3XH3Lx(w ecs.World, signalId string) { }) } -// Drive3XH3Yx 开通引导信号(黄灯亮且红灯亮) -func Drive3XH3Yx(w ecs.World, signalId string) { +// DriveSignal3XH3Yx 开通引导信号(黄灯亮且红灯亮) +func DriveSignal3XH3Yx(w ecs.World, signalId string) { w.Execute(func() { wd := entity.GetWorldData(w) signalEntry, ok := wd.EntityMap[signalId] @@ -58,8 +58,8 @@ func Drive3XH3Yx(w ecs.World, signalId string) { }) } -// Drive3XH3Non 开通禁止信号(红灯亮) -func Drive3XH3Non(w ecs.World, signalId string) { +// DriveSignal3XH3Non 开通禁止信号(红灯亮) +func DriveSignal3XH3Non(w ecs.World, signalId string) { w.Execute(func() { wd := entity.GetWorldData(w) signalEntry, ok := wd.EntityMap[signalId] diff --git a/fi/signal_3xh4.go b/fi/signal_3xh4.go index 0f536d5..41eb59c 100644 --- a/fi/signal_3xh4.go +++ b/fi/signal_3xh4.go @@ -8,9 +8,9 @@ import ( // signal 3xh4 接口:点灯操作、开通列车信号、开通禁止信号 -// Drive3XH4Dd 点灯操作 +// DriveSignal3XH4Dd 点灯操作 // dd : true-物理点灯;false-物理灭灯 -func Drive3XH4Dd(w ecs.World, signalId string, dd bool) { +func DriveSignal3XH4Dd(w ecs.World, signalId string, dd bool) { w.Execute(func() { wd := entity.GetWorldData(w) signalEntry, ok := wd.EntityMap[signalId] @@ -24,9 +24,9 @@ func Drive3XH4Dd(w ecs.World, signalId string, dd bool) { }) } -// Drive3XH4Lx 开通列车信号(直向通过亮绿灯,侧向通过亮黄灯) +// DriveSignal3XH4Lx 开通列车信号(直向通过亮绿灯,侧向通过亮黄灯) // zx : true-直向通过,false-侧向通过 -func Drive3XH4Lx(w ecs.World, signalId string, zx bool) { +func DriveSignal3XH4Lx(w ecs.World, signalId string, zx bool) { w.Execute(func() { wd := entity.GetWorldData(w) signalEntry, ok := wd.EntityMap[signalId] @@ -42,8 +42,8 @@ func Drive3XH4Lx(w ecs.World, signalId string, zx bool) { }) } -// Drive3XH4Non 开通禁止信号(亮红灯) -func Drive3XH4Non(w ecs.World, signalId string) { +// DriveSignal3XH4Non 开通禁止信号(亮红灯) +func DriveSignal3XH4Non(w ecs.World, signalId string) { w.Execute(func() { wd := entity.GetWorldData(w) signalEntry, ok := wd.EntityMap[signalId] diff --git a/fi/signal_dcxh.go b/fi/signal_dcxh.go index 7ddf9ba..901af8a 100644 --- a/fi/signal_dcxh.go +++ b/fi/signal_dcxh.go @@ -8,8 +8,8 @@ import ( // signal dcxh 接口:开通调车信号、开通禁止信号 -// DriveDCXHDx 开通调车信号(白灯亮) -func DriveDCXHDx(w ecs.World, signalId string) { +// DriveSignalDCXHDx 开通调车信号(白灯亮) +func DriveSignalDCXHDx(w ecs.World, signalId string) { w.Execute(func() { wd := entity.GetWorldData(w) signalEntry, ok := wd.EntityMap[signalId] @@ -22,8 +22,8 @@ func DriveDCXHDx(w ecs.World, signalId string) { }) } -// DriveDCXHNon 开通禁止信号(蓝灯亮) -func DriveDCXHNon(w ecs.World, signalId string) { +// DriveSignalDCXHNon 开通禁止信号(蓝灯亮) +func DriveSignalDCXHNon(w ecs.World, signalId string) { w.Execute(func() { wd := entity.GetWorldData(w) signalEntry, ok := wd.EntityMap[signalId] diff --git a/fi/signal_jckxh.go b/fi/signal_jckxh.go index 22b769b..d830603 100644 --- a/fi/signal_jckxh.go +++ b/fi/signal_jckxh.go @@ -8,8 +8,8 @@ import ( // signal jckxh 接口:开通列车信号、开通调车信号、开通禁止信号 -// DriveJCKXHLx 开通列车信号(黄灯亮) -func DriveJCKXHLx(w ecs.World, signalId string) { +// DriveSignalJCKXHLx 开通列车信号(黄灯亮) +func DriveSignalJCKXHLx(w ecs.World, signalId string) { w.Execute(func() { wd := entity.GetWorldData(w) signalEntry, ok := wd.EntityMap[signalId] @@ -25,8 +25,8 @@ func DriveJCKXHLx(w ecs.World, signalId string) { }) } -// DriveJCKXHDx 开通调车信号(白灯亮) -func DriveJCKXHDx(w ecs.World, signalId string) { +// DriveSignalJCKXHDx 开通调车信号(白灯亮) +func DriveSignalJCKXHDx(w ecs.World, signalId string) { w.Execute(func() { wd := entity.GetWorldData(w) signalEntry, ok := wd.EntityMap[signalId] @@ -42,8 +42,8 @@ func DriveJCKXHDx(w ecs.World, signalId string) { }) } -// DriveJCKXHNon 开通禁止信号(红灯亮) -func DriveJCKXHNon(w ecs.World, signalId string) { +// DriveSignalJCKXHNon 开通禁止信号(红灯亮) +func DriveSignalJCKXHNon(w ecs.World, signalId string) { w.Execute(func() { wd := entity.GetWorldData(w) signalEntry, ok := wd.EntityMap[signalId]