52 lines
2.2 KiB
GDScript
52 lines
2.2 KiB
GDScript
extends TotalScene
|
|
|
|
class_name LargePassengerFlowScene
|
|
|
|
## 照相机名字的枚举
|
|
enum Camera_name{
|
|
#VehicleControlRoom,#车控室
|
|
SparePartsCabinet,#备品柜
|
|
PartsArea,#备品区
|
|
StationHall,#站厅
|
|
UpPlatform,#上行站台
|
|
DownPlatform,#下行站台
|
|
#APassageway,#A出入口
|
|
StationHallAExit,#站厅A出口
|
|
AEntrance,#A入口
|
|
APassage,#A口通道
|
|
#BPassageway,#B出入口
|
|
StationHallBExit,#站厅B出口
|
|
BEntrance,#B入口
|
|
BPassage,#B口通道
|
|
#CPassageway,#C出入口
|
|
StationHallCExit,#站厅C出口
|
|
CEntrance,#C入口
|
|
CPassage,#C口通道
|
|
#DPassageway,#D出入口
|
|
StationHallDExit,#站厅D出口
|
|
DEntrance,#D入口
|
|
DPassage,#D口通道
|
|
#StaionHallA,#站厅A端
|
|
ALowerStepSwitch,#A端扶梯下部开关
|
|
ATVM,#A端TVM
|
|
AInboundGate,#A端进站闸机
|
|
AExitGate,#A端出站闸机
|
|
AUpperStep,#A端扶梯上部
|
|
ALowerStep,#A端扶梯下部
|
|
AGangway,#A端站厅步梯口
|
|
#StationHallB,#站厅B端
|
|
BLowerStepSwitch,#B端扶梯下部开关
|
|
BTVM,#B端TVM
|
|
BInboundGate,#B端进站闸机
|
|
BExitGate,#B端出站闸机
|
|
BUpperStep,#B端扶梯上部
|
|
BLowerStep,#B端扶梯下部
|
|
BGangway,#B端站厅步梯口
|
|
}
|
|
|
|
@onready var cameras = [$AllCamera/SparePartsCabinet,$AllCamera/PartsArea,$AllCamera/StationHall,$AllCamera/SparePartsCabinet,$AllCamera/PartsArea,$AllCamera/StationHall,$AllCamera/SparePartsCabinet,$AllCamera/PartsArea,$AllCamera/StationHall,$AllCamera/SparePartsCabinet,$AllCamera/PartsArea,$AllCamera/StationHall,$AllCamera/SparePartsCabinet,$AllCamera/PartsArea,$AllCamera/StationHall,$AllCamera/SparePartsCabinet,$AllCamera/PartsArea,$AllCamera/StationHall,$AllCamera/SparePartsCabinet,$AllCamera/PartsArea,$AllCamera/StationHall,$AllCamera/SparePartsCabinet,$AllCamera/PartsArea,$AllCamera/StationHall,$AllCamera/SparePartsCabinet,$AllCamera/PartsArea,$AllCamera/StationHall,$AllCamera/SparePartsCabinet,$AllCamera/PartsArea,$AllCamera/StationHall,$AllCamera/SparePartsCabinet,$AllCamera/PartsArea,$AllCamera/StationHall,$AllCamera/SparePartsCabinet,$AllCamera/PartsArea,$AllCamera/StationHall,$AllCamera/SparePartsCabinet,$AllCamera/PartsArea,$AllCamera/StationHall]
|
|
|
|
##切换相机
|
|
func switchCamera (camera :Camera_name)-> void:
|
|
cameras[camera].make_current()
|