rts-sim-module/component/iscs_bas_elevator.go

24 lines
489 B
Go
Raw Permalink Normal View History

package component
import (
"joylink.club/ecs"
)
// Escalator 自动扶梯
2023-12-19 11:11:27 +08:00
// 具体异常-故障、异常、通信中断
type Escalator struct {
2023-12-19 11:11:27 +08:00
Running int8 //0-停止1-上行;-1-下行
EmergencyStop bool //true-急停
}
// Elevator 垂直电梯
2023-12-19 11:11:27 +08:00
// 具体异常-故障、异常、通信中断
type Elevator struct {
2023-12-19 11:11:27 +08:00
Running bool //true-运行false-停止
}
var (
EscalatorType = ecs.NewComponentType[Escalator]()
ElevatorType = ecs.NewComponentType[Elevator]()
)