From e3d0169bbec4e28f9c62fdd886ad95f8ae9751b6 Mon Sep 17 00:00:00 2001 From: weizhihong Date: Thu, 9 Feb 2023 17:36:04 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=A2=9E=E5=8A=A0=E7=94=B5=E5=8A=9B?= =?UTF-8?q?=E5=B7=A5=E5=8A=A1=E8=A7=92=E8=89=B2=E3=80=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../joylink/rtss/simulation/cbtc/member/MemberManager.java | 4 ++-- .../rtss/simulation/cbtc/member/SimulationMember.java | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/main/java/club/joylink/rtss/simulation/cbtc/member/MemberManager.java b/src/main/java/club/joylink/rtss/simulation/cbtc/member/MemberManager.java index 783e490b8..5ce3f7ea0 100644 --- a/src/main/java/club/joylink/rtss/simulation/cbtc/member/MemberManager.java +++ b/src/main/java/club/joylink/rtss/simulation/cbtc/member/MemberManager.java @@ -54,12 +54,12 @@ public class MemberManager { } // 大铁CTC if (simulation.getRepository().getConfig().isRailway()) { -// this.addRole(simulation, SimulationMember.Type.RAIL_CTC, null, station); Arrays.asList( SimulationMember.Type.STATION_ASSISTANT, SimulationMember.Type.STATION_MASTER, SimulationMember.Type.STATION_SIGNALER, SimulationMember.Type.STATION_PASSENGER, SimulationMember.Type.STATION_SWITCH_MAN, SimulationMember.Type.STATION_FACILITATOR, - SimulationMember.Type.STATION_WORKER, SimulationMember.Type.DEVICE_MANAGER + SimulationMember.Type.STATION_WORKER, SimulationMember.Type.DEVICE_MANAGER, + SimulationMember.Type.STATION_ELECTRIC_WORKER ).forEach(type -> this.addRole(simulation, null, type, null, station)); } } diff --git a/src/main/java/club/joylink/rtss/simulation/cbtc/member/SimulationMember.java b/src/main/java/club/joylink/rtss/simulation/cbtc/member/SimulationMember.java index 50826a175..01e293240 100644 --- a/src/main/java/club/joylink/rtss/simulation/cbtc/member/SimulationMember.java +++ b/src/main/java/club/joylink/rtss/simulation/cbtc/member/SimulationMember.java @@ -235,7 +235,10 @@ public class SimulationMember extends club.joylink.rtss.simulation.SimulationMem STATION_WORKER(Area.STATION), /** 设备管理员 */ DEVICE_MANAGER(Area.STATION), - ; + /** + * 电力工务 + */ + STATION_ELECTRIC_WORKER(Area.STATION); private final int area;