【增加电力工务角色】

This commit is contained in:
weizhihong 2023-02-09 17:36:04 +08:00
parent 4d5bc197fd
commit e3d0169bbe
2 changed files with 6 additions and 3 deletions

View File

@ -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));
}
}

View File

@ -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;