24 lines
489 B
Go
24 lines
489 B
Go
package component
|
||
|
||
import (
|
||
"joylink.club/ecs"
|
||
)
|
||
|
||
// Escalator 自动扶梯
|
||
// 具体异常-故障、异常、通信中断
|
||
type Escalator struct {
|
||
Running int8 //0-停止;1-上行;-1-下行
|
||
EmergencyStop bool //true-急停
|
||
}
|
||
|
||
// Elevator 垂直电梯
|
||
// 具体异常-故障、异常、通信中断
|
||
type Elevator struct {
|
||
Running bool //true-运行;false-停止
|
||
}
|
||
|
||
var (
|
||
EscalatorType = ecs.NewComponentType[Escalator]()
|
||
ElevatorType = ecs.NewComponentType[Elevator]()
|
||
)
|