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